-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.36 KB
/
release.yaml
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
33
34
35
36
37
38
39
40
41
42
name: release
on:
push:
branches-ignore:
- '**'
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Set version
id: version
run: |
REPOSITORY=$(echo ${{ github.repository }} | sed -e "s#.*/##")
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")
echo ::set-output name=version::$VERSION
echo ::set-output name=filename::$REPOSITORY-$VERSION
echo "Version $VERSION"
- name: Checkout code
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Zip
uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657
with:
type: "zip"
directory: "./ndmf_sps"
filename: "../${{ steps.version.outputs.filename }}.zip" # make the zip file two directories up, since we start two directories in above
- name: Make Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.prop }}
files: |
${{ steps.version.outputs.filename }}.zip
./ndmf_sps/package.json