-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (27 loc) · 1.04 KB
/
Copy pathrelease.yml
File metadata and controls
32 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: get-version-from-dnn-manifest
uses: valadas/get-version-from-dnn-manifest@b2f479d682015f2c22cd506b4a42e90574fe42e8 # v1.0.1
id: version
- name: Zip Release
run: cd Resources && zip -r $FILENAME.zip *
env:
FILENAME: Dnn_Platform_${{ github.event.repository.name }}_${{ steps.version.outputs.versionString }}
- name: Create Release
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
with:
artifacts: Resources/*.zip
body: Dnn ${{ github.event.repository.name }} version ${{ steps.version.outputs.versionString }}
draft: true
immutableCreate: true
tag: v${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }}
# The Github token.
token: ${{ secrets.GITHUB_TOKEN }}