mirror of
https://github.com/RealKai42/qwerty-learner.git
synced 2026-04-05 06:19:08 +08:00
31 lines
823 B
YAML
31 lines
823 B
YAML
name: Deployment to AliYun
|
|
# on:
|
|
# push:
|
|
# branches:
|
|
# - master
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.17.0]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install Packages
|
|
run: yarn
|
|
- name: Build page
|
|
run: yarn build
|
|
- name: upload files to OSS
|
|
uses: fangbinwei/aliyun-oss-website-action@v1
|
|
with:
|
|
accessKeyId: ${{ secrets.YUN_KEY_ID }}
|
|
accessKeySecret: ${{ secrets.YUN_KEY_SECRET }}
|
|
bucket: 'qwerty-front'
|
|
endpoint: 'oss-cn-beijing.aliyuncs.com'
|
|
folder: './build'
|
|
skipSetting: true
|