Release #12
Workflow file for this run
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
'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/[email protected] | |
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 }} |