Skip to content

Commit

Permalink
fix(ci): deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Oct 22, 2023
1 parent 28e2a22 commit 63f8e7c
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: Deploy

on:
push:
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write
name: πŸ—οΈ Deploy

jobs:
deploy:
Expand All @@ -17,29 +12,34 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
- name: πŸ“₯ Checkout
uses: actions/checkout@v3

- name: Set up Node.js
- name: πŸƒ Install Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
node-version: 16
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: πŸƒ Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Build
run: yarn build
- name: πŸ”¨ Build
run: |
pnpm install
pnpm run build
- name: Upload artifact
- name: πŸš€ Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
path: build

- name: Setup Pages
- name: πŸ“ƒ Setup Pages
uses: actions/configure-pages@v3

- name: Deploy to GitHub Pages
- name: πŸ“¦ Deploy
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2

0 comments on commit 63f8e7c

Please sign in to comment.