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 e049e05 commit bc3734b
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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:
deploy:
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
with:
lfs: true
timeout-minutes: 5

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

- run: corepack enable

- 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 bc3734b

Please sign in to comment.