diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3d2fc332..f00d0297 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,20 +7,39 @@ on: - main - specky +concurrency: + group: pages + cancel-in-progress: true + 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: github-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 diff --git a/index.qmd b/index.qmd index 992ae81a..8c5acdb7 100644 --- a/index.qmd +++ b/index.qmd @@ -21,6 +21,8 @@ execute: #### NBIS / Elixir workshop ## [**Tools for Reproducible Research**]{.large} +TEST + How to work reproducibly with control and structuring of project code, environment and workflow management