Skip to content

fix: Allow write permissions on gh-pages workflo #5

fix: Allow write permissions on gh-pages workflo

fix: Allow write permissions on gh-pages workflo #5

Workflow file for this run

name: github pages
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: wasm32-unknown-unknown
- uses: cargo-bins/cargo-binstall@main
- uses: Swatinem/rust-cache@v1
- name: Install CLI
run: cargo binstall --no-confirm dioxus-cli --locked
- uses: actions/checkout@v2
- name: Build
run: dx build --release
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
target-folder: .