diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..d002e498 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,42 @@ +name: Publish + +on: + workflow_run: + workflows: ["CI"] + types: + - completed + branches: + - main + +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