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 : Release
2+ on :
3+ push :
4+ branches :
5+ - master
6+
7+ jobs :
8+ release :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v2
13+
14+ - name : get-version-from-dnn-manifest
15+ uses : valadas/get-version-from-dnn-manifest@v1
16+ id : version
17+
18+ - name : Zip Release
19+ run : cd Resources && zip -r $FILENAME.zip *
20+ env :
21+ FILENAME : Dnn_Platform_${{ github.event.repository.name }}_${{ steps.version.outputs.versionString }}
22+
23+ - name : Create Release
24+ uses : ncipollo/release-action@v1.6.1
25+ with :
26+ artifacts : Resources/*.zip
27+ body : Dnn ${{ github.event.repository.name }} version ${{ steps.version.outputs.versionString }}
28+ tag : v${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }}
29+ # The Github token.
30+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Update Versions
2+ on : create
3+
4+ # Sets the manifest versions when a release branch is created
5+ jobs :
6+ updateVersions :
7+ runs-on : ubuntu-latest
8+ if : ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
9+ steps :
10+ - uses : actions/checkout@v2
11+
12+ - name : get-release-branch-version
13+ uses : valadas/get-release-branch-version@v1
14+ id : branchVersion
15+
16+ - name : set-dnn-manifest-versions
17+ uses : valadas/set-dnn-manifest-versions@v1
18+ with :
19+ # Version to set in the manifests, should be a manifest save version string as in 09.06.00
20+ version : ${{ steps.branchVersion.outputs.manifestSafeVersionString }}
21+ - run : git add .
22+ - run : git config user.name $ACTOR
23+ env :
24+ ACTOR : ${{ github.actor }}
25+ - run : git diff --quiet && git diff --staged --quiet || git commit -m 'Commit new manifest versions'
26+ - run : git push https://$ACTOR:$TOKEN@github.com/$REPOSITORY.git
27+ env :
28+ ACTOR : ${{ github.actor }}
29+ TOKEN : ${{ github.token }}
30+ REPOSITORY : ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments