Skip to content

Release 0.15.9

Release 0.15.9 #156

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: sls-doc-release
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
types: [published]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
run_if:
# if: contains(github.event.release.name, '@release')
strategy:
matrix:
platform: [ubuntu-latest]
node: ['18']
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install pnpm -g --registry https://registry.npmjs.org/
- run: pnpm install --registry https://registry.npmjs.org/
- run: pnpm build
- name: upload files to OSS
uses: fangbinwei/aliyun-oss-website-action@v1
with:
accessKeyId: ${{ secrets.OSS_ACCESS_KEY_ID }}
accessKeySecret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
bucket: sls-docs
endpoint: oss-cn-hangzhou.aliyuncs.com
folder: .vitepress/dist
skipSetting: true