permissions #5
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
# https://github.com/bevyengine/bevy_github_ci_template/blob/main/.github/workflows/release.yaml | |
name: Release | |
on: | |
push: | |
branches: ["main"] | |
env: | |
# update with the name of the main binary | |
# binary: bevy_github_ci_template | |
# add_binaries_to_github_release: true | |
#itch_target: <itch.io-username>/<game-name> | |
# Before enabling LFS, please take a look at GitHub's documentation for costs and quota limits: | |
# https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-storage-and-bandwidth-usage | |
use_git_lfs: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: olegtarasov/[email protected] | |
id: get_version | |
- uses: actions/checkout@v4 | |
with: | |
lfs: ${{ env.use_git_lfs }} | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: wasm32-unknown-unknown | |
- name: install target wasm | |
run: rustup target add wasm32-unknown-unknown | |
- name: install trunk | |
run: cargo install --locked trunk | |
- name: Build | |
run: trunk build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |