-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 883 Bytes
/
release.yml
File metadata and controls
30 lines (25 loc) · 883 Bytes
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
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- name: get-version-from-dnn-manifest
uses: valadas/get-version-from-dnn-manifest@v1
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@v1.6.1
with:
artifacts: Resources/*.zip
body: Dnn ${{ github.event.repository.name }} version ${{ steps.version.outputs.versionString }}
tag: v${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }}
# The Github token.
token: ${{ secrets.GITHUB_TOKEN }}