Skip to content

Commit

Permalink
pr folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfbrito committed Sep 25, 2024
1 parent 73f6a52 commit 87515b0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pull-request-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Upload Artifacts to Wasabi (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
aws s3 cp dist/ s3://${{ secrets.WASABI_BUCKET_NAME }}/${{ matrix.os }}/ --recursive `
aws s3 cp dist/ s3://${{ secrets.WASABI_BUCKET_NAME }}/pr-${{ github.event.pull_request.number }}/${{ matrix.os }}/ --recursive `
--acl public-read `
--endpoint-url=https://s3.us-east-1.wasabisys.com `
--exclude "*" `
Expand All @@ -103,7 +103,7 @@ jobs:
- name: Upload Artifacts to Wasabi (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: |
aws s3 cp dist/ s3://${{ secrets.WASABI_BUCKET_NAME }}/${{ matrix.os }}/ --recursive \
aws s3 cp dist/ s3://${{ secrets.WASABI_BUCKET_NAME }}/pr-${{ github.event.pull_request.number }}/${{ matrix.os }}/ --recursive \
--acl public-read \
--endpoint-url=https://s3.us-east-1.wasabisys.com \
--exclude "*" \
Expand All @@ -117,7 +117,7 @@ jobs:
- name: Upload Artifacts to Wasabi (Ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
aws s3 cp dist/ s3://${{ secrets.WASABI_BUCKET_NAME }}/${{ matrix.os }}/ --recursive \
aws s3 cp dist/ s3://${{ secrets.WASABI_BUCKET_NAME }}/pr-${{ github.event.pull_request.number }}/${{ matrix.os }}/ --recursive \
--acl public-read \
--endpoint-url=https://s3.us-east-1.wasabisys.com \
--exclude "*" \
Expand All @@ -140,7 +140,7 @@ jobs:
let artifactUrls = '';
for (const file of files) {
if (patterns.some(pattern => pattern.test(file))) {
const artifactUrl = `https://s3.us-east-1.wasabisys.com/${{ secrets.WASABI_BUCKET_NAME }}/${{ matrix.os }}/${file}`;
const artifactUrl = `https://s3.us-east-1.wasabisys.com/${{ secrets.WASABI_BUCKET_NAME }}/pr-${{ github.event.pull_request.number }}/${{ matrix.os }}/${file}`;
artifactUrls += `- [${file}](${artifactUrl})\n`;
}
}
Expand All @@ -152,8 +152,8 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: |
### Artifact for ${{ matrix.os }}
### ${{ runner.os }} installer download
${{ steps.get-artifact-urls.outputs.artifact_urls }}
header: '### Artifact for ${{ matrix.os }}'
header: '### ${{ runner.os }} installer download'
recreate: true
append: false

0 comments on commit 87515b0

Please sign in to comment.