Skip to content

Commit

Permalink
add test release consolidation upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Nov 15, 2024
1 parent 5b8be3f commit 86e2460
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/generate-checksums.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ jobs:
echo "::endgroup::"
- name: Checksum files
run: |
cd /tmp/${{ github.sha }}
./scripts/generate-checksums.sh \
--debug \
--directory=/tmp/${{ github.sha }} \
--depth=${{ inputs.depth }} \
--output=${{ inputs.output }} \
${{ inputs.show == true && '--show' || ''}}
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/pr-release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,38 @@ jobs:
node-version: "20"
os: ${{ matrix.os }}

verify:
checksum:
uses: ./.github/workflows/generate-checksums.yml
needs:
- package
with:
flatten: true
show: true

release:
runs-on: ubuntu-24.04
needs:
- checksum
steps:
- name: Create releases
run: mkdir -p /tmp/releases
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: /tmp/releases
merge-multiple: true
- name: Upload release files
uses: actions/upload-artifact@v4
with:
name: pr-release-test-${{ github.sha }}
path: /tmp/releases/*
if-no-files-found: error
retention-days: 1

npm:
runs-on: ubuntu-24.04
needs:
- verify
- release
env:
TERM: xterm
strategy:
Expand Down

0 comments on commit 86e2460

Please sign in to comment.