Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
zxwk1998 committed Aug 4, 2024
1 parent 05ea5ab commit 3aba2ba
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# name: Deploy
# on:
# push:
# branches:
# - master
# jobs:
# deploy:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.com/
# - name: Install Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20
# registry-url: https://registry.npmjs.com/

- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
version: 9
run_install: false
# - uses: pnpm/action-setup@v3
# name: Install pnpm
# id: pnpm-install
# with:
# version: 9
# run_install: false

- name: deploy
run: |
pnpm install
npm run build:mac
cd dist
touch README.md .nojekyll
# - name: deploy
# run: |
# pnpm install
# npm run build:mac
# cd dist
# touch README.md .nojekyll

- name: deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
clean: true
# - name: deploy
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# folder: dist
# clean: true

0 comments on commit 3aba2ba

Please sign in to comment.