Skip to content

Commit

Permalink
ci: Add source tarballs to C sshnpd releases
Browse files Browse the repository at this point in the history
  • Loading branch information
cpswan committed Jun 24, 2024
1 parent 85900a1 commit fbb0df9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/c_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,25 @@ jobs:
name: ${{ matrix.output-name }}-${{github.ref_name}}-${{github.run_number}}-${{github.run_attempt}}
path: ./packages/c/tarballs/${{ matrix.output-name }}.tgz

source_tarball:
name: Generate source tarball
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Create tarball
run: |
mkdir tarball
cd ./packages/c
tar -cvf ../../tarball/csshnpd-${{ github.ref_name }}.tgz .
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: csshnpd-src-${{github.ref_name}}-${{github.run_number}}-${{github.run_attempt}}
path: ./tarball/csshnpd-${{ github.ref_name }}.tgz

github-release:
name: >-
Upload artifacts and generate checksums for provenance
needs: [main_build, other_build]
needs: [main_build, other_build, source_tarball]
runs-on: ubuntu-latest
outputs:
hashes: ${{ steps.hash.outputs.hashes }}
Expand Down

0 comments on commit fbb0df9

Please sign in to comment.