We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3096f8e commit 3796007Copy full SHA for 3796007
1 file changed
.github/workflows/release-dist.yml
@@ -0,0 +1,37 @@
1
+name: Release Frontend Dist
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
8
+jobs:
9
+ build-and-release:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
+ steps:
14
+ - uses: actions/checkout@v4
15
16
+ - name: Setup Node
17
+ uses: actions/setup-node@v4
18
+ with:
19
+ node-version: "20"
20
21
+ - name: Install deps
22
+ run: npm ci
23
24
+ - name: Build
25
+ run: npm run build
26
27
+ - name: Pack dist
28
+ run: |
29
+ VERSION="${GITHUB_REF_NAME#v}"
30
+ TAR="EnergyIntegrationWebApp-${VERSION}-dist.tar.gz"
31
+ tar -czf "$TAR" -C dist .
32
+ echo "TAR_NAME=$TAR" >> $GITHUB_ENV
33
34
+ - name: Release
35
+ uses: softprops/action-gh-release@v2
36
37
+ files: ${{ env.TAR_NAME }}
0 commit comments