idun/.forgejo/workflows/release.yml

30 lines
814 B
YAML
Raw Permalink Normal View History

2023-10-30 10:12:50 +00:00
name: Dev Version
run-name: ${{ github.actor }} is testing
on:
push:
tags:
- '*'
jobs:
Release:
runs-on: docker
#container:
# image: goreleaser/goreleaser
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
#- run: goreleaser release --skip-publish --snapshot --rm-dist --debug
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Run GoReleaser
2023-10-30 10:42:54 +00:00
uses: https://github.com/goreleaser/goreleaser-action@v5
2023-10-30 10:12:50 +00:00
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
GORELEASER_FORCE_TOKEN: "gitea"