send2gokapi/.forgejo/workflows/release.yaml

24 lines
591 B
YAML
Raw Permalink Normal View History

2025-05-31 23:44:16 +00:00
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: Run Goreleaser
2025-06-01 01:03:58 +00:00
run: |
curl -sL https://git.io/goreleaser | bash
2025-05-31 23:44:16 +00:00
env:
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
2025-06-01 00:55:27 +00:00
GORELEASER_FORCE_TOKEN: gitea
2025-06-01 00:39:24 +00:00
GITEA_USERNAME: ${{ secrets.FORGEJO_PACKAGE_PUBLISH_USERNAME }}
2025-06-01 01:03:58 +00:00
GITEA_TOKEN: ${{ secrets.FORGEJO_PACKAGE_PUBLISH_TOKEN }}