Skip to content

Commit

Permalink
feat(ci): auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
NX-Official committed Jul 30, 2024
1 parent 5d8f2bf commit 4aaac2c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
steps:
- name: Check out the code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -38,3 +40,12 @@ jobs:
${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:latest
${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:${{ env.SHORT_SHA }}
platforms: linux/amd64,linux/arm64 # 为多个架构编译,如果你确定只需要其中一种,可以仅保留一种

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: 2.1.0
args: release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

0 comments on commit 4aaac2c

Please sign in to comment.