From f8e6daa532dacfa693ca6c3cf912e8367e18b5bf Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 18 May 2024 22:17:16 -1000 Subject: [PATCH] ;workflows: release: create release, upload one asset --- .github/workflows/release.yml | 54 +++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64de22d69d1..9b7a96eb35e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - # Get artifact from the latest binaries-linux-x64 run - - name: Get latest linux binaries artifact + - name: Get artifact from the latest successful binaries-linux-x64 run uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # https://github.com/dawidd6/action-download-artifact v3.1.4, unverified so needs to be whitelisted in repo settings with: @@ -88,12 +87,30 @@ jobs: # default true allow_forks: false - - name: Inspect + - name: Get artifact from the latest successful binaries-windows-x64 run + uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe + with: + workflow: binaries-windows-x64.yml + allow_forks: false + path: artifacts + + - name: Get artifact from the latest successful binaries-mac-x64 run + uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe + with: + workflow: binaries-mac-x64.yml + allow_forks: false + path: artifacts + + - name: Get artifact from the latest successful binaries-mac-arm run + uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe + with: + workflow: binaries-mac-arm.yml + allow_forks: false + path: artifacts + + - name: Inspect artifacts shell: bash run: | - echo .: - ls -lF - echo artifacts: ls -lRF artifacts # - name: Make tarball @@ -114,18 +131,19 @@ jobs: # echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV # fi - # - name: Create release - # uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # https://github.com/softprops/action-gh-release 2.0.5 - # # permissions: - # # contents: write - # # https://github.com/softprops/action-gh-release?tab=readme-ov-file#-customizing - # with: - # draft: true - # body_path: ${{ github.workspace }}/doc/relnotes.github.md - # fail_on_unmatched_files: true - # # files: | - # # Release.txt - # # LICENSE + - name: Create release + uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # https://github.com/softprops/action-gh-release 2.0.5 + # permissions: + # contents: write + # https://github.com/softprops/action-gh-release?tab=readme-ov-file#-customizing + with: + draft: true + body_path: ${{ github.workspace }}/doc/relnotes.github.md + fail_on_unmatched_files: true + files: | + artifacts/hledger-linux-x64/hledger-linux-x64.tar + # artifacts/hledger-linux-x64/hledger-mac-x64.tar + # artifacts/hledger-linux-x64/hledger-mac-arm.tar