Skip to content

Commit

Permalink
split factorio and mumble in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Sep 21, 2023
1 parent 2fea2b2 commit 8921f7a
Showing 1 changed file with 36 additions and 24 deletions.
60 changes: 36 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
grep -F "<version>${{ steps.get_version.outputs.version }}</version>" mumble/manifest.xml
grep -F 'char *VERSION = "${{ steps.get_version.outputs.version }}";' mumble/plugin.c
build_mumble:
mumble_build:
needs: verify_version_number
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -90,8 +90,8 @@ jobs:
name: build
path: ${{ steps.strings.outputs.build-output-dir }}

bundle_mumble:
needs: [build_mumble, verify_version_number]
mumble_bundle:
needs: [mumble_build, verify_version_number]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -114,7 +114,35 @@ jobs:
name: mumble_bundle
path: factorio.mumble_plugin

bundle_factorio:
mumble_release:
needs: mumble_bundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get Mumble bundle
uses: actions/download-artifact@v3
with:
name: mumble_bundle
path: mumble_bundle

- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload mumble plugin
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: mumble_bundle/factorio.mumble_plugin
asset_name: factorio.mumble_plugin
asset_content_type: application/zip

factorio_bundle:
needs: verify_version_number
runs-on: ubuntu-latest
steps:
Expand All @@ -135,8 +163,8 @@ jobs:
name: factorio_bundle
path: proximity-voice-chat_${{ steps.get_version.outputs.version }}.zip

add_release_files:
needs: [bundle_mumble, bundle_factorio]
factorio_release:
needs: factorio_bundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -145,12 +173,6 @@ jobs:
name: Get version
uses: jannemattila/get-version-from-tag@v1

- name: Get Mumble bundle
uses: actions/download-artifact@v3
with:
name: mumble_bundle
path: mumble_bundle

- name: Get Factorio bundle
uses: actions/download-artifact@v3
with:
Expand All @@ -163,16 +185,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload mumble plugin
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: mumble_bundle/factorio.mumble_plugin
asset_name: factorio.mumble_plugin
asset_content_type: application/zip

- name: Upload factorio mod
uses: actions/[email protected]
env:
Expand All @@ -183,8 +195,8 @@ jobs:
asset_name: proximity-voice-chat_${{ steps.get_version.outputs.version }}.zip
asset_content_type: application/zip

upload_to_factorio_mod_portal:
needs: bundle_factorio
factorio_publish:
needs: factorio_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 8921f7a

Please sign in to comment.