File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ permissions :
10+ contents : write
11+ steps :
12+ - uses : actions/checkout@v3
13+ with :
14+ submodules : recursive
15+ - name : Get Version
16+ id : extract-version
17+ run : |
18+ LATEST_VERSION=$(cat ./oneware-package.json | jq -r '.versions | max_by(.version | split(".") | map(tonumber)) | .version')
19+ echo "Latest version is $LATEST_VERSION"
20+ echo "version=$LATEST_VERSION" >> $GITHUB_OUTPUT
21+ - name : Compress
22+ uses : thedoctor0/zip-release@0.7.1
23+ with :
24+ type : ' zip'
25+ filename : ./OneWare.CoreMax10-${{ steps.extract-version.outputs.version }}-all.zip
26+ directory : ./
27+ exclusions : ' *.git* oneware-package.json'
28+ - uses : ncipollo/release-action@v1.14.0
29+ with :
30+ artifacts : " ./OneWare.CoreMax10-${{ steps.extract-version.outputs.version }}-all.zip"
31+ tag : ${{ steps.extract-version.outputs.version }}
32+ allowUpdates : true
You can’t perform that action at this time.
0 commit comments