Skip to content

Commit

Permalink
fix: samples path in zip (#330)
Browse files Browse the repository at this point in the history
* fix: samples path in zip

* build: store artifacts

* build: store artifacts

* fix: correct artifacts path
  • Loading branch information
dwmkerr authored May 14, 2024
1 parent 14840f3 commit cba5448
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
- name: Build
run: make build

# Store the artifacts in case we want to validate samples etc.
- name: Store Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts

# See:
# https://github.com/marketplace/actions/deploy-pr-preview
deploy-preview:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ jobs:
run: make build
if: ${{ steps.release.outputs.release_created }}

# Store the artifacts in case we want to validate samples etc.
- name: Store Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts

# Deploy the website.
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ mkdir -p ./artifacts/samples/repositories
)

# Zip up and tar up the samples
zip -r ./artifacts/samples.zip ./artifacts/samples
(cd ./artifacts && zip -r ./samples.zip ./samples)
tar czf ./artifacts/samples.tar.gz -C ./artifacts/samples .

0 comments on commit cba5448

Please sign in to comment.