Download .github/workflows/pages.yml from Snapkitty/gitworld: direct link, hf CLI and curl.
- Browser
- Download file 888 Bytes
-
https://huggingface.co/Snapkitty/gitworld/resolve/main/.github/workflows/pages.yml
- Command line
-
hf download hf://Snapkitty/gitworld/.github/workflows/pages.yml
-
curl -L -o pages.yml https://huggingface.co/Snapkitty/gitworld/resolve/main/.github/workflows/pages.yml
888 Bytes
| name: GitWorld Pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Build browser game | |
| run: npm run build | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: dist | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |