feat: 优化白屏加载 #171
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |