Skip to content

Commit

Permalink
added deploy.yaml file, set up next for static build output
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmst committed Apr 17, 2024
1 parent 6398554 commit 9663f8f
Show file tree
Hide file tree
Showing 9 changed files with 2,893 additions and 4,684 deletions.
2 changes: 1 addition & 1 deletion courtformsonline.org/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18.17.0'
node-version: '20'

- name: Install dependencies
run: |
Expand Down
45 changes: 45 additions & 0 deletions courtformsonline.org/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
schedule:
# Schedule to run every 24 hours at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch: # Allows manual triggering of the workflow

permissions:
contents: read
pages: write
id-token: write

# prevents duplicate deployment requests
concurrency:
group: pages-deployment
cancel-in-progress: false

jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
Loading

0 comments on commit 9663f8f

Please sign in to comment.