✨ enables eruda console #41
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: GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
jobs: | |
build_and_deploy_main: | |
name: Rust project for main branch | |
runs-on: ubuntu-22.04 | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: jetli/trunk-action@v0.5.0 | |
with: | |
version: "latest" | |
- run: rustup target add wasm32-unknown-unknown | |
- run: trunk build --release | |
- name: Copy policy.html | |
run: cp ./policy.html ./dist/policy.html | |
- name: Copy terms.html | |
run: cp ./terms.html ./dist/terms.html | |
- name: Copy tonconnect-manifest.json | |
run: cp ./tonconnect-manifest.json ./dist/tonconnect-manifest.json | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./dist | |
keep_files: true |