update movement (works ok) #13
This file contains hidden or 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
| name: foundry-controller CI | |
| env: | |
| # The URL used for the module's "Project URL" link on FoundryVTT's website. | |
| project_url: "https://github.com/${{github.repository}}" | |
| # A URL that will always point to the latest manifest. | |
| # FoundryVTT uses this URL to check whether the current module version that | |
| # is installed is the latest version. This URL should NOT change, | |
| # otherwise FoundryVTT won't be able to perform this check. | |
| latest_manifest_url: "https://github.com/${{github.repository}}/releases/download/latest/module.json" | |
| # The URL to the module archive associated with the module release being | |
| # processed by this workflow. | |
| //release_module_url: "https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip" | |
| release_module_url: "https://github.com/${{github.repository}}/releases/download/latest/module.zip" | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| - run: bun run build | |
| - name: Modify Module Manifest With Release-Specific Values | |
| id: sub_manifest_link_version | |
| uses: cschleiden/replace-tokens@v1 | |
| with: | |
| files: './dist/module.json' | |
| env: | |
| URL: ${{ env.project_url }} | |
| MANIFEST: ${{ env.latest_manifest_url }} | |
| DOWNLOAD: ${{ env.release_module_url }} | |
| - run: zip -r ./module.zip ./dist/module.json ./dist/main.js | |
| - name: Create Release | |
| id: create_latest_release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| allowUpdates: true | |
| name: Latest | |
| draft: false | |
| prerelease: false | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| artifacts: './module.zip,./dist/module.json' | |
| tag: latest |