Skip to content

v2.13.0

v2.13.0 #57

Workflow file for this run

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