bump 2.1.2 #31
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: Build and test | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
- 'develop' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 }} |