Skip to content

Release

Release #11

Workflow file for this run

'on':
release:
types: [published]
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
target: linux-x64
- os: macos-latest
target: darwin-x64 darwin-arm64
- os: windows-latest
target: win32-x64
runs-on: '${{ matrix.os }}'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Retrieve information from package.json
uses: myrotvorets/info-from-package-json-action@1.0.0
id: ver
- run: npm install
- run: >-
npm run package --
--target ${{ matrix.target }}
--out renpy-warp-${{ steps.ver.outputs.packageVersion }}-${{ matrix.target }}.vsix
- name: create github release
uses: ncipollo/release-action@v1
with:
artifacts: '*.vsix'
replacesArtifacts: false
tag: ${{ github.ref_name }}
allowUpdates: true
makeLatest: false
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
- run: npm run publish -- --target ${{ matrix.target }}
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}