Skip to content

Commit

Permalink
Merge pull request #888 from BenjamenMeyer/release-actions_0.9.x
Browse files Browse the repository at this point in the history
Actions: migrate release artifact GH action
  • Loading branch information
BenjamenMeyer authored Oct 6, 2024
2 parents cdb2325 + c069832 commit 1245aa3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 31 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/Windows-Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,9 @@ jobs:
name: test_results_xml
path: ${{github.workspace}}/build/test-results/**/*.xml

#- name: Upload artifacts
# uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3
# with:
# path: "${{ github.workspace }}/build/**/*.zip"

# TODO: Find/write a tool to upload release for Windows
# - name: Upload artifacts
# uses: skx/github-action-publish-binaries@44887b225ceca96efd8a912d39c09ad70312af31 # master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ARTIFACT_EXT: ${{ matrix.ARTIFACT_EXT }}
# with:
# path: "${{ github.workspace }}/**/*.zip"
- name: Upload the artifacts
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: "packages/*.${{ matrix.ARTIFACT_EXT }}"
9 changes: 4 additions & 5 deletions .github/workflows/gh-actions-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ jobs:
run: script/cibuild $FLAGS

- name: Upload the artifacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ARTIFACT_EXT: ${{ matrix.ARTIFACT_EXT }}
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
if: startsWith(github.ref, 'refs/tags/')
with:
args: "packages/*.${{ matrix.ARTIFACT_EXT }}"
token: ${{ secrets.GITHUB_TOKEN }}
files: "packages/*.${{ matrix.ARTIFACT_EXT }}"
19 changes: 6 additions & 13 deletions .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,9 @@ jobs:
name: test_results_xml
path: ${{github.workspace}}/build/test-results/**/*.xml

#- name: Upload the artifacts
# uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3
# with:
# args: "packages/*.${{ matrix.ARTIFACT_EXT }}"

# TODO: Find/write a tool to upload release for Mac OS
# - name: Upload the artifacts
# uses: skx/github-action-publish-binaries@44887b225ceca96efd8a912d39c09ad70312af31 # master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ARTIFACT_EXT: ${{ matrix.ARTIFACT_EXT }}
# with:
# args: "packages/*.${{ matrix.ARTIFACT_EXT }}"
- name: Upload the artifacts
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: "packages/*.${{ matrix.ARTIFACT_EXT }}"

0 comments on commit 1245aa3

Please sign in to comment.