Skip to content

Commit

Permalink
🤖 ci: add GH Page publish process (really)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepg committed Apr 14, 2024
1 parent d079a78 commit bbd2963
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy website

on:
push:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "npm"

- run: cd ${{github.workspace}}/website/

- run: npm ci
- run: run run build

- uses: actions/upload-artifact@v4.3.1
with:
name: "website-build-artifact"
path: "dist/**"
overwrite: true

deploy:
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: "website-build-artifact"
2 changes: 2 additions & 0 deletions website/.github/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
node-version: "18.x"
cache: "npm"

- run: cd ${{github.workspace}}/website/

- run: npm ci
- run: run run build

Expand Down

0 comments on commit bbd2963

Please sign in to comment.