Skip to content

Commit 853dbb5

Browse files
committed
feat: optimize the auto release process
1 parent 946f055 commit 853dbb5

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4
14-
- name: Get git tag
15-
id: tag
16-
uses: dawidd6/action-get-tag@v1
17-
with:
18-
strip_v: true
1914
- name: Set up QEMU
2015
uses: docker/setup-qemu-action@v3
2116
- name: Set up Docker Buildx
@@ -50,7 +45,7 @@ jobs:
5045
tags: ${{ steps.meta.outputs.tags }}
5146
labels: ${{ steps.meta.outputs.labels }}
5247
build-args: |
53-
VERSION=v${{ steps.tag.outputs.tag }}
48+
VERSION=${{ github.ref_name }}
5449
cache-from: type=gha
5550
cache-to: type=gha,mode=max
5651
provenance: false

.github/workflows/release.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,22 @@ jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
1414
steps:
15-
-
16-
name: Checkout
15+
- name: Checkout
1716
uses: actions/checkout@v4
1817
with:
1918
fetch-depth: 0
20-
-
21-
name: Set up Node.js
19+
- name: Set up Node.js
2220
uses: actions/setup-node@v4
2321
with:
2422
node-version: 20
2523
cache: 'npm'
2624
cache-dependency-path: 'web/package-lock.json'
27-
-
28-
name: Set up Go
25+
- name: Set up Go
2926
uses: actions/setup-go@v5
3027
with:
3128
go-version: '1.23'
3229
cache: true
33-
-
34-
name: Build frontend
35-
run: |
36-
cd web
37-
npm ci
38-
npm run build
39-
cd ..
40-
go generate ./...
41-
-
42-
name: Run GoReleaser
30+
- name: Run GoReleaser
4331
uses: goreleaser/goreleaser-action@v6
4432
with:
4533
version: latest

0 commit comments

Comments
 (0)