V12 Compatability #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# create a zip file with all files required by the system to add to the release | |
- name: Zip Files | |
working-directory: ./ | |
run: zip -r ./system.zip ./* | |
# Get the version from 'system.json' | |
- name: Get Version | |
shell: bash | |
id: get-version | |
run: echo "::set-output name=version::$(node ./.github/workflows/get-version.js)" | |
# Create a release for this specific version | |
- name: Create Release | |
id: create_version_release | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true # set this to false if you want to prevent updating existing releases | |
name: Release ${{ steps.get-version.outputs.version }} | |
draft: false | |
prerelease: false | |
token: ${{ secrets.GITHUB_TOKEN }} | |
artifacts: './system.json,./system.zip' | |
tag: ${{ steps.get-version.outputs.version }} |