Skip to content

Commit

Permalink
deploy documentation on github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Jan 2, 2024
1 parent 455f9e9 commit f4df6a9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,31 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

publish_docs:
if: github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
container:
image: ghcr.io/ninanor/nina-catalogue-docs:master
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

permissions:
pages: write
id-token: write

environment:
# environment created automatically by GitHub
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "/var/www"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit f4df6a9

Please sign in to comment.