diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2eb8707..d63c605 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,10 +9,10 @@ on: workflow_dispatch: permissions: - pull-requests: write - contents: write + contents: read pages: write id-token: write + packages: read concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} @@ -29,19 +29,15 @@ jobs: with: submodules: true + - name: Setup Flavor + uses: actions-mn/setup-flavors@main + with: + extra-flavors: + 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 }}