diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 997dcffd..73731bec 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -8,9 +8,24 @@ name: build-test-publish on: workflow_dispatch: -jobs: - # chocolatey is only available on windows - build: +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + actions: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pi-docs" + cancel-in-progress: false + +jobs: + documentation: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest timeout-minutes: 20 @@ -19,20 +34,20 @@ jobs: steps: - # docs Repo + # Docs Repo - name: Checkout Docs uses: actions/checkout@v3 with: path: docs - # protocols repo + # shared repo - name: Checkout Shared uses: actions/checkout@v3 with: repository: perpetualintelligence/shared path: shared - # protocols repo + # oneterminal repo - name: Checkout Terminal uses: actions/checkout@v3 with: