Skip to content

Commit

Permalink
Add Github Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
MOZGIII committed Feb 23, 2024
1 parent bf6a1d6 commit b8452ed
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: pages

on:
push:
branches: [master]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

defaults:
run:
shell: bash

env:
FOUNDRY_PROFILE: ci

jobs:
docgen:
runs-on: ubuntu-22.04
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
timeout-minutes: 5

- uses: actions/setup-node@v4
with:
node-version-file: .node-version

- run: yarn install --immutable

- run: yarn build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "out"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit b8452ed

Please sign in to comment.