Skip to content

Commit

Permalink
Merge pull request #39 from Openscapes/gh-actions-workflow
Browse files Browse the repository at this point in the history
Update gh-actions workflow to current
  • Loading branch information
ateucher authored Nov 27, 2024
2 parents c0a7f0e + 7fa8dcb commit 9109d8a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions explore.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,21 @@ Now you'll have an empty new file. Paste the following in this empty file - you

``` yaml
on:
workflow_dispatch:
push:
branches: main

name: Render and Publish
name: Quarto Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
Expand All @@ -109,8 +112,7 @@ jobs:
# version: 0.9.600

# add software dependencies here

- name: Publish to GitHub Pages (and render)
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
Expand All @@ -120,8 +122,6 @@ jobs:
Commit this to save your new `quarto-publish.yml` file. This is your GitHub Action.

Finally, from your main repo page, click Settings > Actions > General. Under 'Workflow permissions', select 'Read and write permissions'. Save.

**Next, we'll create a new `gh-pages` branch**. Go back to the main view of your GitHub repository. On the far left from the green "Code" button, click the button that says "main". In the pull-down menu, type `gh-pages` - all lowercase, with a hyphen. Click the bold text that says "Create branch: gh-pages from main".

Now click on the Settings tab in the top right of your repository. On the left sidebar, click Pages. At the top of Pages under "Source", select `gh-pages` root, and press Save (may already be saved by default).
Expand Down

0 comments on commit 9109d8a

Please sign in to comment.