Skip to content

Commit

Permalink
[WIP] Test using different GHA for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterius committed Oct 18, 2024
1 parent 5b3d2d3 commit 666e10d
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,34 @@ on:
- specky

jobs:
publish:

build:
runs-on: ubuntu-latest
container: ghcr.io/nbisweden/workshop-reproducible-research/publish:specky
permissions:
contents: write
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Publish to GitHub Pages
uses: quarto-dev/quarto-actions/publish@v2
- name: Build website with Quarto
uses: quarto-dev/quarto-actions/render@v2

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: 'docs/'

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: gh-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 666e10d

Please sign in to comment.