This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
shikukuya -> ZTY #180
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to static server | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy to static server | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build website | |
run: pnpm run build | |
- name: upload files | |
uses: fangbinwei/[email protected] | |
with: | |
accessKeyId: ${{ secrets.ACCESSKEY_ID }} | |
accessKeySecret: ${{ secrets.ACCESSKEY_SECRET }} | |
bucket: web-toiletmc | |
endpoint: oss-cn-hangzhou.aliyuncs.com | |
folder: ./build |