Skip to content

Commit a6deca4

Browse files
committed
add release
1 parent 47b4165 commit a6deca4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build_frontend.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ jobs:
5353
cache: 'npm'
5454
- run: npm ci
5555
- run: npm run build --if-present
56+
- name: Archive dist
57+
uses: actions/upload-artifact@v3
58+
with:
59+
name: dist
60+
path: dist
5661
- name: Create Release
62+
if: github.ref_type == "tag"
5763
id: create_release
5864
uses: actions/create-release@v1
5965
env:
@@ -64,8 +70,10 @@ jobs:
6470
draft: ${{ contains( github.ref_name, 'rc') }}
6571
prerelease: false
6672
- name: Create archive
73+
if: github.ref_type == "tag"
6774
run: tar czf frontend.tar.gz dist
6875
- name: Upload Built Frontend
76+
if: github.ref_type == "tag"
6977
uses: actions/upload-release-asset@v1
7078
env:
7179
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -75,15 +83,11 @@ jobs:
7583
asset_name: frontend.tar.gz
7684
asset_content_type: application/gzip
7785
- uses: eregon/publish-release@v1
86+
if: github.ref_type == "tag"
7887
env:
7988
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8089
with:
8190
release_id: ${{ steps.create_release.outputs.id }}
82-
- name: Archive dist
83-
uses: actions/upload-artifact@v3
84-
with:
85-
name: dist
86-
path: dist
8791

8892
release:
8993
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)