Skip to content

Commit

Permalink
Merge pull request #38 from felixicaza/deploy
Browse files Browse the repository at this point in the history
feat: setup deploy to github pages
  • Loading branch information
felixicaza authored Jul 21, 2024
2 parents dfe5b9e + 8a448e4 commit 0d24e0e
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

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

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/[email protected]

- name: Using Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: latest

- name: Install dependencies
run: pnpm install

- name: Build project
run: pnpm build

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'frontend/dist'

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

0 comments on commit 0d24e0e

Please sign in to comment.