Skip to content

release-complete

release-complete #188

Workflow file for this run

name: Publish
on:
repository_dispatch:
types: [ release-complete ]
jobs:
publish-registry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
merge-multiple: true
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.client_payload.artifacts_run_id }}
path: VisualPinball.Unity/Plugins
- run: |
ls -laR VisualPinball.Unity/Plugins
- name: Add Meta Files
run: |
echo -e "fileFormatVersion: 2\nguid: 766a31c3b9f34ab0885c9eb91f7b1fe4" > package.json.meta
echo -e "fileFormatVersion: 2\nguid: adae7347fead42e782a1276d30931a41" > LICENSE.meta
echo -e "fileFormatVersion: 2\nguid: 72a46a663e3b40d0b6e8ff25d554a779" > README.md.meta
echo -e "fileFormatVersion: 2\nguid: a2951ed31fba458ca06c535598194a28" > CHANGELOG.md.meta
echo -e "fileFormatVersion: 2\nguid: a2a4b6cb3229489f99c06f0771c522ce" > CONTRIBUTING.md.meta
echo -e "fileFormatVersion: 2\nguid: 931f3c49f79d4032bceefe14682a7d5a" > VisualPinball.Unity.meta
echo -e "fileFormatVersion: 2\nguid: ea4f7f8d4c2c418e9fc0fbed8ab1f5a9" > VisualPinball.Engine.meta
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.visualpinball.org'
always-auth: true
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
dispatch:
runs-on: ubuntu-latest
needs: [ publish-registry ]
steps:
- uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GH_PAT }}
event-type: publish-complete
client-payload: '{"artifacts_run_id": "${{ github.run_id }}"}'