-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (32 loc) · 1.03 KB
/
github_build.yml
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
# The website deployment is handled on the Netlify side.
# This workflow is just to make the latest website build easily viewable on GitHub.
name: GitHub Build
on:
workflow_dispatch:
branches:
- main
push:
branches:
- main
jobs:
main-build-deploy:
name: Push Build to Branch `main-build`
if: |
(github.event_name == 'push' && github.ref_name == 'main')
|| (github.event_name == 'workflow_dispatch' && github.ref_name == 'main')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
- name: Push to Branch `main-build`
uses: JamesIves/[email protected]
with:
folder: _site # Source files to build.
branch: main-build # The branch the action should deploy to.
timeout-minutes: 1