Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
workflow_dispatch:

permissions:
contents: read
pull-requests: write
contents: write
pages: write
id-token: write

Expand All @@ -20,31 +21,27 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
outputs:
deploy-gh-pages: ${{ steps.build-and-publish.outputs.gh-pages-enabled }}
container:
image: metanorma/metanorma:latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6
with:
submodules: true

- name: Metanorma generate site
id: build-and-publish
uses: actions-mn/build-and-publish@v1
uses: actions-mn/build-and-publish@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
agree-to-terms: true
destination: artifact

deploy:
if: ${{ needs.build.deploy-gh-pages == 'true' && github.ref_name == github.event.repository.default_branch }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions-mn/deploy-pages@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Loading