Skip to content

doc: 更新README

doc: 更新README #48

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
-
name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 14
-
name: Build WebUI
run: |
cd client
npm install
npm run build
- name: Create Changelog
uses: ardalanamini/auto-changelog@v3
id: changelog
with:
github-token: ${{ github.token }}
commit-types: |
feat: 🎉 新功能
fix: 🐛 BUG修复
refactor: 🪚 重构
perf: 🏎️ 性能优化
docs: 📚 文档变更
chore: 🧹 日常任务
other: 其他变更
default-commit-type: 其他变更
mention-authors: false
mention-new-contributors: false
include-compare: false
semver: true
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: chmod +x ./build.sh && ./build.sh
- name: Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
body: ${{ steps.changelog.outputs.changelog }}
artifactErrorsFailBuild: true
artifacts: "mino-*.tar.gz,mino-*.apk"
token: ${{ secrets.GITHUB_TOKEN }}
release-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
-
name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 14
-
name: Build WebUI
run: |
cd client
npm install
npm run build
- name: Build
run: ./build-windows.bat
- name: Release
uses: ncipollo/release-action@v1
with:
omitBody: true
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "mino-*.zip"
token: ${{ secrets.GITHUB_TOKEN }}