Skip to content

Commit

Permalink
Fix release after advanced.yml was refactored to build runtime pack…
Browse files Browse the repository at this point in the history
…age (#229)
  • Loading branch information
Blackhex committed Dec 7, 2024
1 parent f0d1915 commit 4c6da12
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ on:
outputs:
toolchain-package-name:
value: ${{ jobs.build-toolchain.outputs.toolchain-package-name }}
toolchain-artifact-name:
value: ${{ jobs.build-toolchain.outputs.toolchain-artifact-name }}
runtime-package-name:
value: ${{ jobs.build-toolchain.outputs.runtime-package-name }}
runtime-artifact-name:
value: ${{ jobs.build-toolchain.outputs.runtime-artifact-name }}
toolchain-cache-key:
value: ${{ jobs.build-toolchain.outputs.toolchain-cache-key }}
runtime-cache-key:
Expand Down Expand Up @@ -377,7 +381,9 @@ jobs:

outputs:
toolchain-package-name: ${{ env.PACK_TOOLCHAIN == 'true' && env.TOOLCHAIN_PACKAGE_NAME || '' }}
toolchain-artifact-name: ${{ env.PACK_TOOLCHAIN == 'true' && env.TOOLCHAIN_ARTIFACT_NAME || '' }}
runtime-package-name: ${{ env.PACK_TOOLCHAIN == 'true' && env.RUNTIME_PACKAGE_NAME || '' }}
runtime-artifact-name: ${{ env.PACK_TOOLCHAIN == 'true' && env.RUNTIME_ARTIFACT_NAME || '' }}
toolchain-cache-key: ${{ env.PACK_TOOLCHAIN == 'true' && steps.cache-keys.outputs.toolchain-cache-key || '' }}
runtime-cache-key: ${{ env.PACK_TOOLCHAIN == 'true' && steps.cache-keys.outputs.runtime-cache-key || '' }}

Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,25 @@ jobs:
url: ${{steps.create-release.outputs.url }}

steps:
- name: Download artifact
- name: Download toolchain artifact
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.toolchain-package-name }}
name: ${{ needs.build.outputs.toolchain-artifact-name }}

- name: Download runtime artifact
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.runtime-artifact-name }}

- name: Create tag
run: |
echo "TAG=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: Create release
id: create-release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ needs.build.outputs.toolchain-package-name }}
files: |
${{ needs.build.outputs.toolchain-artifact-name }}
${{ needs.build.outputs.runtime-artifact-name }}
tag_name: ${{ env.TAG }}

0 comments on commit 4c6da12

Please sign in to comment.