-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (34 loc) · 1.14 KB
/
deploy.yml
File metadata and controls
37 lines (34 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy to Website
on:
# Trigger the workflow every time you push to the `main` branch
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
# Run after our weekly meeting
schedule:
- cron: "13 23 * * 4"
# Allow this job to clone the repo and create a page deployment
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
with:
# Number of commits to fetch. 0 indicates all history for all branches and tags.
# Needed for sitemap generation with valid lastmod https://github.com/facebook/docusaurus/pull/9954#issuecomment-2032900942
fetch-depth: 0
- name: Install, build, and upload your site output
uses: withastro/action@v2
with:
node-version: 24
- name: Deploy to Server
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: deploy