Skip to content

Add a CI github action #2

Add a CI github action

Add a CI github action #2

Workflow file for this run

name: Publish
on:
# workflow_run:
# workflows: ["CI"]
# types:
# - completed
# branches:
# - main
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
publish:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: website
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown
- uses: jetli/trunk-action@v0.4.0
- uses: taiki-e/install-action@v2
with:
tool: just@1.5.0,zola@0.18.0
- name: Configure Git
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Deploy
run: just deploy