- Skip update-version on release

- Add new lines between jobs
This commit is contained in:
ParticleG
2022-08-05 02:43:09 +08:00
parent ed03e1dbe7
commit e2d7574d7c

View File

@@ -6,10 +6,12 @@ on:
tags: [pre*, v*] tags: [pre*, v*]
pull_request: pull_request:
branches: [main] branches: [main]
env: env:
BUILD_TYPE: ${{ fromJSON('["dev", "release"]')[startsWith(github.ref, 'refs/tags/v')] }} BUILD_TYPE: ${{ fromJSON('["dev", "release"]')[startsWith(github.ref, 'refs/tags/v')] }}
CORE_LOVE_PACKAGE_PATH: ./core.love CORE_LOVE_PACKAGE_PATH: ./core.love
CORE_LOVE_ARTIFACT_NAME: core_love_package CORE_LOVE_ARTIFACT_NAME: core_love_package
jobs: jobs:
get-info: get-info:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -46,6 +48,7 @@ jobs:
run: | run: |
BASE_NAME=Techmino_${{ steps.app-info.outputs.version-string }}_${{ steps.git-info.outputs.commit-hash }}_#${{ GITHUB.RUN_NUMBER }} BASE_NAME=Techmino_${{ steps.app-info.outputs.version-string }}_${{ steps.git-info.outputs.commit-hash }}_#${{ GITHUB.RUN_NUMBER }}
echo ::set-output name=base-name::$BASE_NAME echo ::set-output name=base-name::$BASE_NAME
build-core: build-core:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: get-info needs: get-info
@@ -58,6 +61,7 @@ jobs:
with: with:
submodules: recursive submodules: recursive
- uses: ./.github/actions/update-version - uses: ./.github/actions/update-version
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
with: with:
commit: ${{ needs.get-info.outputs.commit-hash }} commit: ${{ needs.get-info.outputs.commit-hash }}
type: snapshot type: snapshot
@@ -95,6 +99,7 @@ jobs:
shell: bash shell: bash
run: | run: |
echo "::notice title=Bare love package::${{ steps.transfer.outputs.download-url }}" echo "::notice title=Bare love package::${{ steps.transfer.outputs.download-url }}"
auto-test: auto-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build-core needs: build-core
@@ -107,6 +112,7 @@ jobs:
with: with:
font-path: ./parts/fonts/proportional.otf font-path: ./parts/fonts/proportional.otf
language-folder: ./parts/language language-folder: ./parts/language
build-android: build-android:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [get-info, build-core, auto-test] needs: [get-info, build-core, auto-test]
@@ -194,6 +200,7 @@ jobs:
shell: bash shell: bash
run: | run: |
echo "::notice title=Android packages::${{ steps.transfer.outputs.download-url }}" echo "::notice title=Android packages::${{ steps.transfer.outputs.download-url }}"
build-ios: build-ios:
runs-on: macos-latest runs-on: macos-latest
needs: [get-info, build-core, auto-test] needs: [get-info, build-core, auto-test]
@@ -275,6 +282,7 @@ jobs:
shell: bash shell: bash
run: | run: |
echo "::notice title=iOS packages::${{ steps.transfer.outputs.download-url }}" echo "::notice title=iOS packages::${{ steps.transfer.outputs.download-url }}"
build-linux: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [get-info, build-core, auto-test] needs: [get-info, build-core, auto-test]
@@ -344,6 +352,7 @@ jobs:
shell: bash shell: bash
run: | run: |
echo "::notice title=Linux packages::${{ steps.transfer.outputs.download-url }}" echo "::notice title=Linux packages::${{ steps.transfer.outputs.download-url }}"
build-macos-appstore: build-macos-appstore:
runs-on: macos-latest runs-on: macos-latest
needs: [get-info, build-core, auto-test] needs: [get-info, build-core, auto-test]
@@ -428,6 +437,7 @@ jobs:
shell: bash shell: bash
run: | run: |
echo "::notice title=macOS App Store packages::${{ steps.transfer.outputs.download-url }}" echo "::notice title=macOS App Store packages::${{ steps.transfer.outputs.download-url }}"
build-macos-portable: build-macos-portable:
runs-on: macos-latest runs-on: macos-latest
needs: [get-info, build-core, auto-test] needs: [get-info, build-core, auto-test]
@@ -523,6 +533,7 @@ jobs:
shell: bash shell: bash
run: | run: |
echo "::notice title=macOS portable packages::${{ steps.transfer.outputs.download-url }}" echo "::notice title=macOS portable packages::${{ steps.transfer.outputs.download-url }}"
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest
needs: [get-info, build-core, auto-test] needs: [get-info, build-core, auto-test]
@@ -591,6 +602,7 @@ jobs:
shell: bash shell: bash
run: | run: |
echo "::notice title=Windows packages::${{ steps.transfer.outputs.download-url }}" echo "::notice title=Windows packages::${{ steps.transfer.outputs.download-url }}"
post-build: post-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ always() }} if: ${{ always() }}