Added goreleaser and release workflow
Some checks failed
Build and Release / release (push) Failing after 27s
Some checks failed
Build and Release / release (push) Failing after 27s
This commit is contained in:
parent
314e519446
commit
67a576f786
2 changed files with 51 additions and 0 deletions
26
.forgejo/workflows/release.yaml
Normal file
26
.forgejo/workflows/release.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Build and Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.24'
|
||||
- name: Install Goreleaser
|
||||
run: |
|
||||
curl -sL https://git.io/goreleaser | bash
|
||||
- name: Run Goreleaser
|
||||
env:
|
||||
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
|
||||
FORGEJO_USERNAME: ${{ secrets.FORGEJO_PACKAGE_PUBLISH_USERNAME }}
|
||||
FORGEJO_TOKEN: ${{ secrets.FORGEJO_PACKAGE_PUBLISH_TOKEN }}
|
||||
run: |
|
||||
./bin/goreleaser release --clean --skip-validate
|
||||
Loading…
Add table
Add a link
Reference in a new issue