ci: try with removed view token #2
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
| # gobo build | |
| name: Gobuild /demo/ | |
| on: | |
| pull_request: | |
| branches: ['main'] | |
| push: | |
| branches: ['main'] | |
| release: | |
| types: [prereleased, published] | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.13" | |
| - name: Set up rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Set up goboscript | |
| shell: bash | |
| run: | | |
| export PATH="$PATH:~/.local/bin" | |
| export PATH="$PATH:~/.cargo/bin" | |
| cargo install --git https://github.com/aspizu/goboscript | |
| # above code is from: | |
| # run: curl -fsSL https://raw.githubusercontent.com/aspizu/goboscript/refs/heads/main/install.sh | sh | |
| # but backpack and sb2gs have been removed | |
| - name: Install dependencies for testing | |
| shell: bash | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -U inflator | |
| - name: Set inflator token | |
| shell: bash | |
| run: | | |
| inflate set auth-token ${{ secrets.GH_VIEW_TOKEN }} | |
| - name: Inflate | |
| shell: bash | |
| run: | | |
| ls -l | |
| inflate install . # inflate gobo. Technically this isn't needed because of the install command below | |
| cd demo | |
| inflate install -r inflator.toml # inflate demo dependencies, e.g. assert | |
| inflate | |
| - name: Build | |
| shell: bash | |
| run: | | |
| cd demo | |
| goboscript build | |
| - name: Commit demo.sb3 | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| add: "demo/demo.sb3 --force" | |
| message: 'build: demo.sb3' |