Skip to content

Commit

Permalink
Some tweaks to deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed May 31, 2024
1 parent 7059d50 commit 9cc245b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ on:
- completed

permissions:
contents: write
contents: read
pages: write
id-token: write

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

jobs:
prepare:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -40,17 +46,13 @@ jobs:
path: deploy

deploy_to_gh_pages:
runs-on: ubuntu-latest
needs: prepare

permissions:
pages: write
id-token: write
needs: build

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

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand All @@ -60,7 +62,7 @@ jobs:

deploy_to_s3:
runs-on: ubuntu-latest
needs: prepare
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v3
Expand Down

0 comments on commit 9cc245b

Please sign in to comment.