further refactoring of slot null checks to optional chaining #1214
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: Update docs | |
on: | |
push: | |
branches: | |
- '**' | |
- '!crowdin' | |
tags: | |
- '*' | |
pull_request_target: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout your repository using git | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Install Node Dependencies | |
run: | | |
npm install | |
- name: Build Docs | |
env: | |
DEPLOYMENT: gh-pages | |
run: | | |
npm run build:docs | |
- name: Upload Pages Artifact | |
if: ${{ github.event_name == 'push' && github.repository == 'Corsace/Corsace' && github.ref_name == 'master' }} | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: Docs/dist/ | |
deploy: | |
if: ${{ github.event_name == 'push' && github.repository == 'Corsace/Corsace' && github.ref_name == 'master' }} | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |