Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Aug 28, 2024
1 parent ab5b544 commit 41de776
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Publish to GitHub pages

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: write
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
Github-Pages-Release:
timeout-minutes: 10

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

runs-on: ubuntu-latest

steps:
- uses: pnpm/action-setup@v4
with:
version: 8

- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: pnpm install

- name: Prettier
run: pnpm prettier

- name: Build with Trunk
run: pnpm build

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

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./build"

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

0 comments on commit 41de776

Please sign in to comment.