Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ on:
types:
- completed
status: {}

# Least-privilege: pascalgn/automerge-action merges PRs with GITHUB_TOKEN,
# which requires contents:write (merge) and pull-requests:write.
permissions:
contents: write
pull-requests: write

jobs:
automerge:
runs-on: ubuntu-latest
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
workflow_dispatch:

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

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
Expand All @@ -29,15 +29,19 @@ jobs:
with:
submodules: true

- name: Setup Flavor
uses: actions-mn/setup-flavors@main
with:
extra-flavors: ribose
github-packages-token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
use-bundler: true

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

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
uses: actions-mn/deploy-pages@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Loading