File tree Expand file tree Collapse file tree 2 files changed +56
-1
lines changed
Expand file tree Collapse file tree 2 files changed +56
-1
lines changed Original file line number Diff line number Diff line change 1- VITE_BACKEND_URL = http://localhost:8237
1+ # The URL of the Devserver for the vite proxy during development
2+ VITE_BACKEND_URL = http://localhost:8237
3+
4+ # The version of the UI to be displayed in the UI
5+ VITE_UI_VERSION = 0.0.0
Original file line number Diff line number Diff line change 1+ name : Release-pipeline
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ tags :
7+ - " *"
8+
9+ jobs :
10+ release :
11+ name : Release
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout Repository
15+ uses : actions/checkout@v5
16+
17+ - name : Get the version from the github tag ref
18+ id : get_version
19+ run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
20+
21+ - uses : actions/setup-node@v6
22+ with :
23+ node-version : lts/*
24+
25+ - name : Install pnpm
26+ uses : pnpm/action-setup@v4
27+ with :
28+ version : latest
29+
30+ - name : Install dependencies and build
31+ run : |
32+ pnpm install --frozen-lockfile
33+ pnpm build
34+ env :
35+ VITE_UI_VERSION : ${{ steps.get_version.outputs.VERSION }}
36+
37+ - name : Create release archive
38+ run : |
39+ tar -zcf kitaru-ui.tar.gz -C dist --transform="s#\.\/##" .
40+ sha256sum -b kitaru-ui.tar.gz > kitaru-ui.tar.gz.sha256
41+
42+ - name : Release to GitHub
43+ uses : softprops/action-gh-release@v2
44+ with :
45+ files : |
46+ kitaru-ui.tar.gz
47+ kitaru-ui.tar.gz.sha256
48+ body_path : ./CHANGELOG.md
49+ prerelease : " true"
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments