Compare commits

...

3 Commits
main ... ci

Author SHA1 Message Date
48248dd275 add go, try dev null for token
Some checks failed
build
goreleaser
2023-04-08 15:24:57 +02:00
567321f44f test goreleaser with forced token
Some checks failed
goreleaser
2023-04-08 14:23:58 +02:00
ba05f2cd9a fix releaser flags
Some checks are pending
goreleaser
2023-04-08 14:02:53 +02:00
2 changed files with 31 additions and 3 deletions

19
.github/workflows/go.yml vendored Normal file
View File

@ -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

View File

@ -3,6 +3,8 @@ name: goreleaser
on: on:
push: push:
branches: [ main, ci ] branches: [ main, ci ]
tags:
- '*'
jobs: jobs:
goreleaser: goreleaser:
@ -20,7 +22,14 @@ jobs:
with: with:
distribution: goreleaser distribution: goreleaser
version: latest version: latest
args: release --nightly args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 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 }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}