Skip to content

Merge pull request #18 from dbecorp/ojeezegcoohno #6

Merge pull request #18 from dbecorp/ojeezegcoohno

Merge pull request #18 from dbecorp/ojeezegcoohno #6

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
tag-release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Get Version from file
id: get-version
uses: juliangruber/[email protected]
with:
path: ./.VERSION
- name: Configure Git
run: |
git config user.email "[email protected]"
git config user.name "$GITHUB_ACTOR"
- name: Set Reftag
id: tag-version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.get-version.outputs.content }}
tag_prefix: ""
cut-release:
runs-on: ubuntu-latest
needs: tag-release
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.email "[email protected]"
git config user.name "$GITHUB_ACTOR"
- name: Set up Go
uses: actions/setup-go@v5
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}