Skip to content

Commit

Permalink
upload release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
sheurich committed Mar 4, 2024
1 parent 8931b88 commit 910468d
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,22 +131,25 @@ jobs:
create-release:
needs:
- go-build
- docker-build
- docker-version
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
- name: Display build artifacts
run: ls -lR
# - name: Create release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # https://cli.github.com/manual/gh_release_create
# run: gh release create "${GITHUB_REF_NAME}"
# continue-on-error: true
# - name: Upload release files
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # https://cli.github.com/manual/gh_release_upload
# run: gh release upload "${GITHUB_REF_NAME}" boulder*.deb boulder*.tar.gz
run: tree .
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://cli.github.com/manual/gh_release_create
run: gh release create "${{ github.ref_name }}"
continue-on-error: true
- name: Upload release files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://cli.github.com/manual/gh_release_upload
run: |
for a in pebble-*; do
echo "Uploading ${a}"
f=$(ls -1 "${a}"/*/*/pebble* | head -n 1)
gh release upload "${{ github.ref_name }}" "${f}"'%#%'"${a}";
done

0 comments on commit 910468d

Please sign in to comment.