teldrive/.github/workflows/release.yml

38 lines
807 B
YAML
Raw Normal View History

2024-08-18 16:27:19 +08:00
name: Goreleaser
on:
push:
tags:
- "*"
2024-09-01 00:13:42 +08:00
permissions: write-all
2024-08-18 16:27:19 +08:00
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
2025-01-11 22:08:57 +08:00
2024-08-18 16:27:19 +08:00
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}