Skip to content

Commit

Permalink
Build with action
Browse files Browse the repository at this point in the history
  • Loading branch information
mine-cetinkaya-rundel committed Jan 21, 2024
1 parent 621b21f commit d8f4538
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:

name: Build Site

jobs:
build-website:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- name: Install Quarto CLI
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
version: 1.4.547

- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2

- name: Deploy 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: _site # The folder the action should deploy.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.Ruserdata

/.quarto/
_site/

0 comments on commit d8f4538

Please sign in to comment.