Skip to content

Commit 92f57be

Browse files
authored
Adds release github action
Adds release github action
1 parent 434b176 commit 92f57be

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 }}

0 commit comments

Comments
 (0)