-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed to upload assets instead of creating a new github release
- Loading branch information
Showing
1 changed file
with
8 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,7 +147,7 @@ jobs: | |
needs: | ||
- plan | ||
- build-local-artifacts | ||
runs-on: "ubuntu-20.04" | ||
runs-on: "ubuntu-latest" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BUILD_MANIFEST_NAME: target/distrib/dist-manifest.json | ||
|
@@ -192,7 +192,7 @@ jobs: | |
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
runs-on: "ubuntu-20.04" | ||
runs-on: "ubuntu-latest" | ||
outputs: | ||
val: ${{ steps.host.outputs.manifest }} | ||
steps: | ||
|
@@ -230,7 +230,7 @@ jobs: | |
# still allowing individual publish jobs to skip themselves (for prereleases). | ||
# "host" however must run to completion, no skipping allowed! | ||
if: ${{ always() && needs.host.result == 'success' }} | ||
runs-on: "ubuntu-20.04" | ||
runs-on: "ubuntu-latest" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
|
@@ -246,11 +246,9 @@ jobs: | |
run: | | ||
# Remove the granular manifests | ||
rm -f artifacts/*-dist-manifest.json | ||
- name: Create Github Release | ||
uses: ncipollo/release-action@v1 | ||
- name: Upload assets to Github Release | ||
uses: AButler/upload-release-[email protected] | ||
with: | ||
tag: ${{ needs.plan.outputs.tag }} | ||
name: ${{ fromJson(needs.host.outputs.val).announcement_title }} | ||
body: ${{ fromJson(needs.host.outputs.val).announcement_github_body }} | ||
prerelease: ${{ fromJson(needs.host.outputs.val).announcement_is_prerelease }} | ||
artifacts: "artifacts/*" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
files: "artifacts/*" | ||
release-tag: ${{ needs.plan.outputs.tag }} |