Skip to content

发布2.1.1

发布2.1.1 #26

name: Build and test
on:
pull_request:
push:
branches:
- 'master'
- 'develop'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cardinalby/export-env-action@v1
with:
envFile: './.github/workflows/constants.env'
expand: true
- name: Build, test and pack to zip
id: build
uses: ./.github/workflows/actions/build-test-pack
with:
# pack zip only for pull requests or workflow_dispatch events
doNotPackZip: ${{ github.event_name == 'push' && 'true' || 'false'}}
- name: Upload zip file artifact
if: github.event_name != 'push'
uses: actions/upload-artifact@v2
with:
name: ${{ env.ZIP_FILE_NAME }}
path: ${{ env.ZIP_FILE_PATH }}