diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 3de0b6f..ce9bd0f 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -7,12 +7,6 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: 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: @@ -37,6 +31,11 @@ jobs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages + permissions: + contents: read + pages: write + id-token: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f2b07b..a5f06e5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,7 @@ name: publish libraries on: release: - types: [published] + types: ["published"] jobs: build: runs-on: ubuntu-latest