Skip to content

Commit

Permalink
feat: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
5unnyWind committed Sep 4, 2023
1 parent 46a22cf commit 0fa0ae7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy

on:
workflow_dispatch:
push:
branches: [main]
paths-ignore:
- "README.md"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v3.5.0

- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Build project
run: |
echo install dependencies
pnpm i
echo build project
pnpm build
- name: aliyun-oss-website-action
uses: fangbinwei/aliyun-oss-website-action@v1
with:
folder: dist
accessKeyId: ${{ secrets.ACCESSKEYID }}
accessKeySecret: ${{ secrets.ACCESSKEYSECRET }}
bucket: 2023-egg-h5
endpoint: oss-cn-hangzhou.aliyuncs.com
skipSetting: true

0 comments on commit 0fa0ae7

Please sign in to comment.