Skip to content

please work actions #44

please work actions

please work actions #44

name: Release to Github Pages

Check failure on line 1 in .github/workflows/gh-pages-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gh-pages-deploy.yml

Invalid workflow file

(Line: 52, Col: 13): Unrecognized named-value: 'CNAME'. Located at position 1 within expression: CNAME
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
Github-Pages-Release:
timeout-minutes: 10
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Setup Dioxus CLI
run: cargo install dioxus-cli --locked
- name: Build with Dioxus CLI
run: |
dx bundle --release --out-dir dist
cp dist/index.html dist/404.html
- name: Copy CNAME for custom domain
if: CNAME
run: cp CNAME dist/
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v4