+{%- set upload_artifact_s3_action = "seemethere/upload-artifact-s3@v3" -%}
+
{%- macro display_ec2_information() -%}
- name: Display EC2 information
shell: bash
- name: Archive artifacts into zip
run: |
zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .pytorch-test-times.json
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: !{{ common.upload_artifact_s3_action }}
name: Store PyTorch Build Artifacts on S3
with:
name: ${{ env.BUILD_ENVIRONMENT }}
if-no-files-found: error
path:
test-reports-*.zip
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: !{{ common.upload_artifact_s3_action }}
name: Store PyTorch Test Reports on S3
if: always()
with:
run: |
# Ensure the working directory gets chowned back to the current user
docker run --rm -v "$(pwd)":/v -w /v "${ALPINE_IMAGE}" chown -R "$(id -u):$(id -g)" .
- - uses: seemethere/upload-artifact-s3@v3
+ - uses: !{{ common.upload_artifact_s3_action }}
name: Upload Python Docs Preview
if: ${{ github.event_name == 'pull_request' && matrix.docs_type == 'python' }}
with:
if-no-files-found: error
path: pytorch.github.io/docs/merge/
s3-prefix: ${{ github.repository }}/pr-previews/pr/${{ github.event.pull_request.number }}
- - uses: seemethere/upload-artifact-s3@v3
+ - uses: !{{ common.upload_artifact_s3_action }}
name: Upload C++ Docs Preview
if: ${{ github.event_name == 'pull_request' && matrix.docs_type == 'cppdocs' }}
with:
path: C:\${{ github.run_id }}\build-results
- name: Upload artifacts to s3
if: always()
- uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ uses: !{{ common.upload_artifact_s3_action }}
with:
retention-days: 14
if-no-files-found: error
- name: Archive artifacts into zip
run: |
zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .pytorch-test-times.json
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Build Artifacts on S3
with:
name: ${{ env.BUILD_ENVIRONMENT }}
if-no-files-found: error
path:
test-reports-*.zip
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Test Reports on S3
if: always()
with:
- name: Archive artifacts into zip
run: |
zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .pytorch-test-times.json
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Build Artifacts on S3
with:
name: ${{ env.BUILD_ENVIRONMENT }}
if-no-files-found: error
path:
test-reports-*.zip
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Test Reports on S3
if: always()
with:
- name: Archive artifacts into zip
run: |
zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .pytorch-test-times.json
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Build Artifacts on S3
with:
name: ${{ env.BUILD_ENVIRONMENT }}
if-no-files-found: error
path:
test-reports-*.zip
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Test Reports on S3
if: always()
with:
- name: Archive artifacts into zip
run: |
zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .pytorch-test-times.json
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Build Artifacts on S3
with:
name: ${{ env.BUILD_ENVIRONMENT }}
if-no-files-found: error
path:
test-reports-*.zip
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Test Reports on S3
if: always()
with:
- name: Archive artifacts into zip
run: |
zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .pytorch-test-times.json
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Build Artifacts on S3
with:
name: ${{ env.BUILD_ENVIRONMENT }}
if-no-files-found: error
path:
test-reports-*.zip
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Test Reports on S3
if: always()
with:
- name: Archive artifacts into zip
run: |
zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .pytorch-test-times.json
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Build Artifacts on S3
with:
name: ${{ env.BUILD_ENVIRONMENT }}
if-no-files-found: error
path:
test-reports-*.zip
- - uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ - uses: seemethere/upload-artifact-s3@v3
name: Store PyTorch Test Reports on S3
if: always()
with:
path: C:\${{ github.run_id }}\build-results
- name: Upload artifacts to s3
if: always()
- uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ uses: seemethere/upload-artifact-s3@v3
with:
retention-days: 14
if-no-files-found: error
path: C:\${{ github.run_id }}\build-results
- name: Upload artifacts to s3
if: always()
- uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ uses: seemethere/upload-artifact-s3@v3
with:
retention-days: 14
if-no-files-found: error
path: C:\${{ github.run_id }}\build-results
- name: Upload artifacts to s3
if: always()
- uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ uses: seemethere/upload-artifact-s3@v3
with:
retention-days: 14
if-no-files-found: error
path: C:\${{ github.run_id }}\build-results
- name: Upload artifacts to s3
if: always()
- uses: seemethere/upload-artifact-s3@9d7ceb0ab39c2c88d93ef7792b27425b27d59162
+ uses: seemethere/upload-artifact-s3@v3
with:
retention-days: 14
if-no-files-found: error