Skip to content

Commit

Permalink
Add a deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
irh committed Jan 29, 2024
1 parent 0757f93 commit 8f9bcd7
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8f9bcd7

Please sign in to comment.