fjordgard

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

commit e1dea80346804ef0fbb0338d0bd995dfb9ebb73e
parent 4a9722f46e4f8224f5c461118b62f3fc4a4146a5
Author: Sylvia Ivory <git@sivory.net>
Date:   Fri, 20 Jun 2025 03:21:44 -0700

Upload web version to pages

Diffstat:
A.github/workflows/pages.yml | 39+++++++++++++++++++++++++++++++++++++++
M.github/workflows/testing.yml | 4+++-
2 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml @@ -0,0 +1,39 @@ +name: Deploy to Pages + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install Rust + run: rustup toolchain install stable --profile minimal + - uses: Swatinem/rust-cache@v2 + - uses: jetli/trunk-action@v0.5.0 + - name: Build website + run: trunk build --release -M --cargo-profile wasm + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./dist + + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml @@ -1,11 +1,13 @@ # Referenced https://github.com/eza-community/eza/blob/main/.github/workflows/unit-tests.yml -name: Testing +name: Lint and Test + on: push: branches: [main] pull_request: branches: [main] workflow_dispatch: + jobs: lint: runs-on: ${{ matrix.os }}