Skip to content

Commit

Permalink
Build project in pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Aug 16, 2024
1 parent 2a1336e commit 75ec20a
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ on:
push:
branches:
- main
- deploy-doom.hydra.family # TODO remove

workflow_dispatch:

permissions:
contents: read
pages: write
# TODO: enable pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
Expand All @@ -28,12 +29,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Build
run: |
yarn
yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './holding-page'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
path: "./dist"

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

0 comments on commit 75ec20a

Please sign in to comment.