mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 04:22:33 +08:00
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: Release
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
permissions:
|
|
contents: write
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
cache: true
|
|
go-version: 'stable'
|
|
- name: Wait for frontend build
|
|
uses: lewagon/wait-on-check-action@v1.3.4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
check-name: 'build (frontend)'
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Download frontend
|
|
uses: dawidd6/action-download-artifact@v7
|
|
with:
|
|
workflow: frontend.yml
|
|
name: frontend
|
|
path: internal/embed/frontend
|
|
check_artifacts: true
|
|
- name: Set environment variables
|
|
run: |
|
|
echo "GOVERSION=$(go version | cut -d' ' -f3)" >> $GITHUB_ENV
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v6
|
|
with:
|
|
version: latest
|
|
args: release --clean
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |