Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
minikin committed Nov 13, 2024
1 parent b48bad8 commit d68aa42
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -36,11 +41,19 @@ jobs:
permissions:
pages: write
id-token: write
deployments: write
statuses: write
contents: read
actions: read

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

concurrency:
group: "pages"
cancel-in-progress: false

steps:
- name: Setup Pages
uses: actions/configure-pages@v4
Expand All @@ -55,12 +68,22 @@ jobs:
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write
pull-requests: write
deployments: write
statuses: write
contents: read
actions: read

environment:
name: preview
url: ${{ steps.deployment.outputs.page_url }}

concurrency:
group: "pages-pr-${{ github.event.pull_request.number }}"
cancel-in-progress: true

steps:
- name: Deploy Preview
id: deployment
Expand Down

0 comments on commit d68aa42

Please sign in to comment.