Bump @docusaurus/types from 3.6.3 to 3.7.0 #108
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy Website | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/**' | |
- 'api/**' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/**' | |
- 'api/**' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out Repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
lfs: false | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' | |
- name: NPM Install Dependencies | |
run: npm ci | |
- name: NPM Build Docusaurus Website | |
run: npm run build | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: website | |
path: build | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
environment: | |
name: Azure Static Web Apps | |
url: ${{ steps.deploy.outputs.static_web_app_url }} | |
steps: | |
- name: Download Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: website | |
path: build | |
- name: Install OIDC Client from Core Package | |
run: npm install @actions/[email protected] @actions/http-client | |
- name: Get Id Token | |
uses: actions/github-script@v6 | |
id: idtoken | |
with: | |
script: | | |
const coredemo = require('@actions/core') | |
return await coredemo.getIDToken() | |
result-encoding: string | |
- name: Deploy to Azure Static Web Apps | |
id: deploy | |
uses: azure/static-web-apps-deploy@v1 | |
with: | |
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_MOSS_07D95F50F }} | |
action: 'upload' | |
app_location: 'build' | |
api_location: './api' | |
output_location: 'build' | |
github_id_token: ${{ steps.idtoken.outputs.result }} |