fjordgard

A desktop clock application
Log | Files | Refs | README | LICENSE

pages.yml (967B)


      1 name: Deploy to Pages
      2 
      3 on:
      4   push:
      5     branches: [main]
      6   workflow_dispatch:
      7 
      8 permissions:
      9   contents: read
     10   pages: write
     11   id-token: write
     12 
     13 concurrency:
     14   group: "pages"
     15   cancel-in-progress: false
     16 
     17 jobs:
     18   build:
     19     runs-on: ubuntu-latest
     20     steps:
     21       - name: Checkout repository
     22         uses: actions/checkout@v4
     23       - name: Install Rust
     24         run: rustup toolchain install stable --profile minimal
     25       - name: Add wasm target
     26         run: rustup target add wasm32-unknown-unknown
     27       - uses: Swatinem/rust-cache@v2
     28       - uses: jetli/trunk-action@v0.5.0
     29       - name: Build website
     30         run: trunk build --release -M --cargo-profile wasm --public-url https://sylviettee.github.io/fjordgard
     31       - name: Upload artifact
     32         uses: actions/upload-pages-artifact@v3
     33         with:
     34           path: ./dist
     35 
     36   deploy:
     37     runs-on: ubuntu-latest
     38     needs: build
     39     steps:
     40       - name: Deploy to GitHub Pages
     41         uses: actions/deploy-pages@v4