Skip to content

Commit

Permalink
ci: github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Aug 17, 2024
1 parent 9b569f7 commit 05feac9
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deployment

on:
push:
branches: [main]
workflow_dispatch:

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

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

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: install
run: pnpm -r i --frozen-lockfile
- name: build
run: pnpm build
- name: configure
uses: actions/configure-pages@v5
- name: upload
uses: actions/upload-pages-artifact@v3
with:
path: dist
- name: deploy
id: deployment
uses: actions/deploy-pages@v4
- name: 'logging'
run: echo "Deployed at ${{ steps.deployment.outputs.page_url }}"

0 comments on commit 05feac9

Please sign in to comment.