change trap position / index #45
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
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
- name: Install trunk | |
uses: jetli/[email protected] | |
with: | |
version: 'latest' | |
- name: Install tailwindcss | |
run: npm install -D tailwindcss | |
- name: Create dist directory | |
run: mkdir -p dist | |
- name: Build tailwindcss | |
run: npx tailwindcss -i ./styles/tailwind.css -o ./dist/tailwind.css | |
- name: Build | |
run: | | |
trunk build --release --public-url /spaces-game | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |