gospt/.gitea/workflows/releaser.yaml

29 lines
624 B
YAML
Raw Normal View History

2024-04-06 17:41:58 +00:00
name: deployer
run-name: ${{ gitea.actor }} is releasing
on:
push:
tags:
- "*"
jobs:
2024-04-06 18:17:37 +00:00
go-releaser:
2024-04-06 17:41:58 +00:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup up go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: nightly
args: release --clean
env:
2024-04-06 17:48:25 +00:00
GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN_GITEA}}