Skip to content

Gate releases on SDK CI and refresh Pages actions #39

Gate releases on SDK CI and refresh Pages actions

Gate releases on SDK CI and refresh Pages actions #39

Workflow file for this run

name: Publish GitHub Pages
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Configure GitHub Pages
uses: actions/configure-pages@v6
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run build:site
- name: Package Pages artifact
run: |
tar --directory dist -cvf github-pages.tar .
gzip -f github-pages.tar
- name: Upload Pages artifact
uses: actions/upload-artifact@v7
with:
name: github-pages
path: ./github-pages.tar.gz
retention-days: 1
deploy:
if: github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5