feat: update change log #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |