Skip to content

Commit

Permalink
Remove GCS upload for smapp pr-builds and releases
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-spacemesh committed Nov 5, 2024
1 parent f9a4f32 commit 85e9fdb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 84 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,47 +225,6 @@ jobs:
run: |
echo "Version: ${{ steps.package-version.outputs.version }}"
- name: Set up GCloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true

- if: matrix.platform == 'macos'
name: upload macos build
uses: google-github-actions/upload-cloud-storage@v0
env:
preSuffix: ${{ matrix.arch != '' && '-' || '' }}
with:
path: ./release/Spacemesh-${{ steps.package-version.outputs.version }}${{ env.preSuffix }}${{ matrix.arch }}.dmg
destination: ${{ secrets.GCP_BUCKET }}/pr-${{ github.sha }}

- if: matrix.platform == 'windows'
name: upload windows build
uses: google-github-actions/upload-cloud-storage@v0
with:
path: ./release/Spacemesh Setup ${{ steps.package-version.outputs.version }}.exe
destination: ${{ secrets.GCP_BUCKET }}/pr-${{ github.sha }}

- if: matrix.platform == 'linux'
name: upload linux build
uses: google-github-actions/upload-cloud-storage@v0
env:
preSuffix: ${{ matrix.arch != '' && '_' || '' }}
with:
path: ./release/spacemesh_app_${{ steps.package-version.outputs.version }}${{ env.preSuffix }}${{ matrix.arch }}.deb
destination: ${{ secrets.GCP_BUCKET }}/pr-${{ github.sha }}

- if: matrix.platform == 'linux'
name: upload linux build
uses: google-github-actions/upload-cloud-storage@v0
env:
arch: ${{ matrix.arch == 'arm64' && '-arm64' || '' }}
with:
path: ./release/Spacemesh-${{ steps.package-version.outputs.version }}${{ env.arch }}.AppImage
destination: ${{ secrets.GCP_BUCKET }}/pr-${{ github.sha }}

# Upload artifacts to Cloudflare
- if: matrix.platform == 'windows'
name: aws cli windows
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,49 +400,6 @@ jobs:
- run: cp -f ./release/latest-merged.yml ./release/macos/latest-mac.yml
- run: cp -f ./release/latest-merged.yml ./release/macos-arm64/latest-mac.yml

# Upload artifacts to GCS
- name: Set up GCloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true

- name: Upload macos artifact
uses: google-github-actions/upload-cloud-storage@v0
with:
path: ./release/macos/
destination: ${{ secrets.GCP_BUCKET }}/${{ needs.build.outputs.tagName }}
parent: false

- name: Upload macos arm64 artifact
uses: google-github-actions/upload-cloud-storage@v0
with:
path: ./release/macos-arm64/
destination: ${{ secrets.GCP_BUCKET }}/${{ needs.build.outputs.tagName }}
parent: false

- name: Upload windows build
uses: google-github-actions/upload-cloud-storage@v0
with:
path: ./release/windows-signed/
destination: ${{ secrets.GCP_BUCKET }}/${{ needs.build.outputs.tagName }}
parent: false

- name: Upload linux build
uses: google-github-actions/upload-cloud-storage@v0
with:
path: ./release/linux/
destination: ${{ secrets.GCP_BUCKET }}/${{ needs.build.outputs.tagName }}
parent: false

- name: Upload linux arm64 build
uses: google-github-actions/upload-cloud-storage@v0
with:
path: ./release/linux-arm64/
destination: ${{ secrets.GCP_BUCKET }}/${{ needs.build.outputs.tagName }}
parent: false

# Upload artifacts to Cloudflare
- name: Upload macos artifact CF
uses: shallwefootball/s3-upload-action@master
Expand Down

0 comments on commit 85e9fdb

Please sign in to comment.