diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3d2fc332..141faaf9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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