make it explore #51
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
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
trunk-build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
target: wasm32-unknown-unknown | |
- uses: jetli/[email protected] | |
- uses: Swatinem/[email protected] | |
- run: trunk build --public-url . --release | |
- run: rm .gitignore | |
- run: touch dist/.nojekyll | |
- run: echo -n "tictactoe.row666.com" | tee dist/CNAME | |
- uses: rayluo/[email protected] | |
with: | |
# Optional. | |
# | |
# Default value "." means the root directory of your project will be published. | |
# | |
# You can use whatever directory your project uses, | |
# for example "wwwroot" (without leading "./"). | |
# Such a directory does *not* have to already exist in your repo, | |
# it could be an output directory created dynamically | |
# by your static website builder. | |
source-directory: dist | |
# Optional. Default value "gh-pages". | |
# It specifies the temporary branch which hosts the static website. | |
# Each build will OVERWRITE this branch. | |
target-branch: gh-pages |