Skip to content

Fix permissions

Fix permissions #75

Workflow file for this run

name: cryptarch
on:
- push
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Tests
run: |
go test
go test **/*
release:
if: ${{ startsWith(github.ref, 'refs/tags') }} # Only run on tags.
needs:
- test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: stable
- uses: goreleaser/goreleaser-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: release --clean --skip=announce
distribution: goreleaser
version: latest