Skip to content

Commit

Permalink
;workflows: release: create release, upload one asset
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed May 19, 2024
1 parent 6e7b8f9 commit 20d95ba
Showing 1 changed file with 34 additions and 19 deletions.
53 changes: 34 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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-arm-x64 run
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
with:
workflow: binaries-arm-x64.yml
allow_forks: false
path: artifacts

- name: Inspect artifacts
shell: bash
run: |
echo .:
ls -lF
echo artifacts:
ls -lRF artifacts
# - name: Make tarball
Expand All @@ -114,19 +131,17 @@ 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
# snippets
Expand Down

0 comments on commit 20d95ba

Please sign in to comment.