Bump convert_case from 0.6.0 to 0.7.1 #36
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
name: Build and Deploy | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features | |
- name: Run tests | |
run: cargo test --verbose | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: wasm-pack-action | |
uses: jetli/[email protected] | |
- name: Build Wasm | |
run: wasm-pack build | |
working-directory: ./s2s_web | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm run build:frontend | |
- uses: actions/upload-artifact@master | |
with: | |
name: svelte-build | |
path: frontend/dist/ | |
deploy: | |
name: Deploy | |
needs: build | |
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/master' | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/download-artifact@master | |
with: | |
name: svelte-build | |
path: frontend/dist/ | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'frontend/dist/' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |