Skip to content

Update README.md

Update README.md #42

Workflow file for this run

name: release
on:
push:
tags:
- "*"
jobs:
release:
strategy:
matrix:
platform: [ubuntu-latest]
name: Release
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 9
run_install: false
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
path: iSweet-Web
persist-credentials: false
fetch-depth: 0
submodules: recursive
- name: Checkout dist repo
uses: actions/checkout@v4
with:
repository: li-peifeng/iSweet-Dist
ref: main
path: iSweet-Dist
persist-credentials: false
fetch-depth: 0
- name: Build
run: |
mv iSweet-Web/release.sh .
bash release.sh
- name: Upload dist files
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_TOKEN }}
branch: main
directory: iSweet-Dist
repository: li-peifeng/iSweet-Dist
- name: Release
uses: softprops/action-gh-release@v2
with:
files: compress/*