Skip to content

goreleaser fix

goreleaser fix #69

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}

Check failure on line 11 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 11, Col: 5): Unexpected value 'SNAPCRAFT_STORE_CREDENTIALS'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.20
id: go
- name: Set Envs
run: |
echo GO_VERSION=$(go version | awk '{print $3;}') >> $GITHUB_ENV
- name: Login to Snapcraft
uses: samuelmeuli/action-snapcraft@v2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GO_VERSION: ${{ env.GITHUB_GO_VERSION }}