Skip to content

Commit

Permalink
GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Apr 14, 2024
1 parent d851855 commit 969833e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Deploy website"
on:
push:
branches:
- main
workflow_dispatch:
cron:
- '0 0 * * *'

jobs:
deploy:
name: Deploy website
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Generate JSON containing all concerts
working-directory: rust
run: cargo run

- name: Set up pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Build website
run: pnpm build --base /cm

- name: Deploy website
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
keep_files: false

0 comments on commit 969833e

Please sign in to comment.