Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ on:

jobs:
build:
environment:
name: github-pages
permissions:
contents: write
pages: write
id-token: write
contents: read
runs-on: ubuntu-latest

steps:
Expand All @@ -37,14 +33,25 @@ jobs:
INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }}
SEGMENT_TOKEN: ${{ secrets.SEGMENT_TOKEN }}

- name: Set up GitHub Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: ./build

# separate job, the artifact listing lags behind the upload and deploying right after it fails intermittently
deploy:
needs: build
environment:
name: github-pages
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest

steps:
- name: Set up GitHub Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0

- name: Deploy artifact to GitHub Pages
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1

Expand Down
Loading