Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: samples path in zip #330

Merged
merged 4 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 .