Skip to content

hotfix: 更新日志&回滚配置 #11

hotfix: 更新日志&回滚配置

hotfix: 更新日志&回滚配置 #11

Workflow file for this run

name: 自动构建
on:
workflow_dispatch:
pull_request:
types:
- closed
jobs:
build-android:
if: "github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'release: ')"
runs-on: ubuntu-latest
steps:
- run: |
echo ${{github.event.pull_request.body}}
- name: Checkout
uses: actions/checkout@v3
- name: Setup Env
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Pkgs
run: npm ci
- name: Get Version
run: node -p -e '`VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- name: Build
run: |
cd ./android
./gradlew assembleRelease
- name: Generate Changelog
run: echo github.event_name
manual:
runs-on: ubuntu-latest
if: "github.event_name == 'workflow_dispatch'"
steps:
- run: |
echo ${{github.event.pull_request.body}}
- name: Checkout
uses: actions/checkout@v3
- name: Setup Env
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Pkgs
run: npm ci
- name: Get Version
run: node -p -e '`VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- name: Build
run: |
cd ./android
./gradlew assembleRelease