Skip to content

Merge remote-tracking branch 'righthandofvecna/801-npc-builder-null-s… #72

Merge remote-tracking branch 'righthandofvecna/801-npc-builder-null-s…

Merge remote-tracking branch 'righthandofvecna/801-npc-builder-null-s… #72

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 }}