File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [ master ]
7+ pull_request :
8+ branches : [ master ]
9+
10+ jobs :
11+ build-and-release :
12+ name : Build Project and Create Release
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write
16+
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v6.0.0
20+
21+ - name : Build Package
22+ run : |
23+ chmod +x ./build/fnpack-1.0.4-linux-amd64
24+ ./build/fnpack-1.0.4-linux-amd64 build mcsmanager
25+
26+ - name : Get current package version
27+ id : package-version
28+ uses : martinbeentjes/npm-get-version-action@v1.3.1
29+ path : mcsmanager/app/server/web
30+
31+ - name : Release
32+ uses : ncipollo/release-action@v1.20.0
33+ with :
34+ tag : v${{ steps.package-version.outputs.current-version}}
35+ name : v${{ steps.package-version.outputs.current-version}}
36+ body : [CHANGELOG](https://github.com/MCSManager/MCSManager/releases/tag/v${{ steps.package-version.outputs.current-version}})
37+ artifacts : " mcsmanager.fpk"
38+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments