Skip to content

Commit

Permalink
ci: upload attributions tarball on release
Browse files Browse the repository at this point in the history
  • Loading branch information
cbgbt committed Oct 1, 2024
1 parent 17e801b commit c1edcd9
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,31 @@ jobs:
gh release upload "${GITHUB_REF_NAME}" $(cat uploads.txt)
echo "uploaded!"
# Upload dependency attributions
upload-attributions:
needs: [create-release, upload-artifacts]
if: >-
${{ needs.create-release.outputs.has-releases == 'true'
&& github.repository == 'bottlerocket-os/bottlerocket'
}}
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF_NAME: ${{ github.ref_name }}

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Upload attributions
run: |
make attributions
gh release upload "${GITHUB_REF_NAME}" twoliter-attributions.tar.gz
# Mark the Github Release™ as a non-draft now that everything has succeeded!
publish-release:
# Only run after all the other tasks, but it's ok if upload-artifacts was skipped
needs: [create-release, upload-artifacts]
needs: [create-release, upload-artifacts, upload-attributions]
if: >-
${{ github.repository == 'bottlerocket-os/twoliter'
&& always()
Expand Down

0 comments on commit c1edcd9

Please sign in to comment.