Skip to content

Merge pull request #93 from dbschenker/dependabot/go_modules/github.c… #23

Merge pull request #93 from dbschenker/dependabot/go_modules/github.c…

Merge pull request #93 from dbschenker/dependabot/go_modules/github.c… #23

Workflow file for this run

name: goreleaser
on:
push:
tags:
- '*'
jobs:
goreleaser:
name: Release binaries
runs-on: ubuntu-latest
permissions:
contents: write # for go-releaser binaries
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
-
name: Set Variables used in .goreleaser.yml for ldflags
run: |
echo "VAULTPAL_COMMIT=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV
echo "VAULTPAL_VERSION=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"
echo "VAULTPAL_BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%S')" >> "$GITHUB_ENV"
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}