File tree Expand file tree Collapse file tree 3 files changed +46
-0
lines changed
Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build app
2+ on :
3+ push :
4+ tags :
5+ - " *"
6+
7+ concurrency :
8+ group : ${{ github.ref }}
9+ cancel-in-progress : true
10+
11+ jobs :
12+ build :
13+ name : Build
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout repo
18+ uses : actions/checkout@v3
19+ - name : Setup Node
20+ uses : actions/setup-node@v3
21+ with :
22+ node-version : 20
23+ - name : Install dependencies
24+ run : npm install
25+ - name : Production build
26+ run : npx vite build
27+
28+ - name : Package release tarball
29+ if : startsWith(github.ref, 'refs/tags/')
30+ run : tar jcvf mrext-client.tar.gz -C ./build .
31+ - name : Create release
32+ uses : softprops/action-gh-release@v1
33+ if : startsWith(github.ref, 'refs/tags/')
34+ with :
35+ files : mrext-client.tar.gz
36+ fail_on_unmatched_files : true
37+
38+ permissions :
39+ contents : write
Original file line number Diff line number Diff line change @@ -24,3 +24,5 @@ yarn-error.log*
2424
2525.vscode
2626.idea
27+
28+ mrext-client.tar.gz
Original file line number Diff line number Diff line change @@ -40,3 +40,8 @@ These libraries are installed automatically but are notable:
40401 . Run ` vite build ` to build the app
41412 . Copy the entire ` build ` directory to ` cmd/remote/_client ` in the Remote
4242 repository
43+
44+ ### Publishing a release
45+
46+ 1 . Create a tag ` git tag vx.x ` with your chosen version number
47+ 2 . Push the tag: ` git push origin --tags `
You can’t perform that action at this time.
0 commit comments