Skip to content

Commit

Permalink
use secret for bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuangnm authored and dhuangnm committed Sep 12, 2024
1 parent 064e960 commit 7f90c49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
needs: TEST
uses: ./.github/workflows/upload.yml
with:
label: k8s-util
label: ${{ inputs.build_label }}
timeout: 40
run_id: ${{ github.run_id }}
push_to_pypi: ${{ inputs.push_to_pypi }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
id-token: 'write'

outputs:
assets_location: gs://compressed-tensors/assets/${{ github.run_id }}
assets_location: ${{ secrets.GCP_BUILD_ML_ASSETS2 }}/assets/${{ github.run_id }}
run_id: ${{ github.run_id }}
whl: ${{ steps.build.outputs.whl }}
tarfile: ${{ steps.build.outputs.tarfile }}
Expand Down Expand Up @@ -114,8 +114,8 @@ jobs:

- name: copy whl and source distribution
run: |
gcloud storage cp dist/${{ steps.build.outputs.whlname }} gs://compressed-tensors/assets/${{ github.run_id }}/${{ steps.build.outputs.whlname }}
gcloud storage cp dist/${{ steps.build.outputs.tarname }} gs://compressed-tensors/assets/${{ github.run_id }}/${{ steps.build.outputs.tarname }}
gcloud storage cp dist/${{ steps.build.outputs.whlname }} ${{ secrets.GCP_BUILD_ML_ASSETS2 }}/assets/${{ github.run_id }}/${{ steps.build.outputs.whlname }}
gcloud storage cp dist/${{ steps.build.outputs.tarname }} ${{ secrets.GCP_BUILD_ML_ASSETS2 }}/assets/${{ github.run_id }}/${{ steps.build.outputs.tarname }}
- name: upload whl
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- name: download assets
uses: neuralmagic/nm-actions/actions/gcp-download-assets@v1.1.0
with:
bucket_source: ${{ secrets.GCP_BUILD_ASSETS }}
bucket_source: ${{ secrets.GCP_BUILD_ML_ASSETS2 }}
run_id: ${{ inputs.run_id }}

- name: find whl
Expand Down

0 comments on commit 7f90c49

Please sign in to comment.