From 48248dd275cd5917902ac013a14790f5b1498805 Mon Sep 17 00:00:00 2001 From: daniel fusser Date: Sat, 8 Apr 2023 15:24:57 +0200 Subject: [PATCH] add go, try dev null for token --- .github/workflows/go.yml | 19 +++++++++++++++++++ .github/workflows/{build.yml => release.yml} | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/go.yml rename .github/workflows/{build.yml => release.yml} (83%) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..22941dc --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,19 @@ +name: Go +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '>=1.20.1' + - name: Install dependencies + run: go get . + - name: Build + run: go build -v ./... + - name: Test with the Go CLI + run: go test diff --git a/.github/workflows/build.yml b/.github/workflows/release.yml similarity index 83% rename from .github/workflows/build.yml rename to .github/workflows/release.yml index 87d69e7..72f9f3a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,8 @@ name: goreleaser on: push: branches: [ main, ci ] + tags: + - '*' jobs: goreleaser: @@ -23,6 +25,8 @@ jobs: args: release --clean env_files: + # override gitea actions which passes GITHUB_TOKEN to set env var as null + GITHUB_TOKEN: /dev/null GORELEASER_FORCE_TOKEN: "gitea" GITEA_TOKEN: ${{ secrets.GORELASER_TOKEN }}