Skip to content

initial commit

initial commit #3

Workflow file for this run

name: Deploy to OSS
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
- uses: manyuanrong/[email protected]
with:
endpoint: 'oss-cn-beijing.aliyuncs.com'
access-key-id: ${{ secrets.ALIBABA_CLOUD_ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.ALIBABA_CLOUD_ACCESS_KEY_SECRET }}
- name: Build
env:
VITE_BEIAN: ${{ secrets.BEIAN }}
run: |
yarn install
yarn build
- name: Upload to OSS
run: |
ossutil sync dist oss://bjut-tech-website -f --delete