Skip to content

Publish 0.4.0

Publish 0.4.0 #14

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:
- env:
REQBODY: ${{github.event.pull_request.body}}
run: |
echo "${REQBODY}"
- 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:
- env:
REQBODY: ${{github.event.pull_request.body}}
run: |
echo "${REQBODY}"
- 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