Skip to content

1.22.1

1.22.1 #247

Workflow file for this run

name: Release on Tag
on:
push:
tags:
- '0.*'
- '1.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Get Version
shell: bash
id: get-version
run: echo "version=$(node ./.github/workflows/get-version.js) >> $GITHUB_OUTPUT"
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Install dependencies and run webpack
run: |
npm ci
npm run build:production
- name: Create installable system zip file
run: cd dist && zip -r ../ironsworn.zip *
- name: Create release
id: create_versioned_release
uses: ncipollo/release-action@v1
with:
name: ${{ steps.get-version.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './system/system.json,./ironsworn.zip'