-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (33 loc) · 1.09 KB
/
release.yml
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
name: Create Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Create zip file
- run: zip -r ./release.zip *
# Substitute tag for changelog
- name: Substitute tag
id: substitute_tag
uses: ashley-taylor/regex-property-action@1.2
with:
value: ${{github.event.release.tag_name}}
regex: "[v.]"
flags: "g"
replacement: ""
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
# Update release with zip file
- name: Update Release with Files
id: create_version_release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: './release.zip'
body: "Changelog: https://github.com/mrkwnzl/cyphersystem-foundryvtt/blob/develop/CHANGELOG.md#${{steps.substitute_tag.outputs.value}}---${{steps.date.outputs.date}}"
omitDraftDuringUpdate: true
omitPrereleaseDuringUpdate: true