Skip to content

Commit

Permalink
Updating gcloud setup and create release
Browse files Browse the repository at this point in the history
  • Loading branch information
arroyoAle committed Jan 18, 2024
1 parent 48cf5eb commit cc1b2ce
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
with:
credentials_json: ${{ secrets.GCR_KEY }}
- name: Setup Google Cloud SDK
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2
- name: Configure GCR
run: |
gcloud auth configure-docker
Expand Down Expand Up @@ -172,18 +172,11 @@ jobs:
cp $IMAGE-${{ env.HELM_VERSION }}.tgz $IMAGE-latest.tgz
gsutil cp $IMAGE-*.tgz gs://$ARTIFACT_BUCKET/$IMAGE/
- uses: actions/create-release@v1
- name: Create Release
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: ${{ env.version }}
body: |
Automated release
${{ env.version }}
draft: false
prerelease: false
run: gh release create ${{ env.version }} --title ${{ env.version }} --notes ${{ env.version }}

- name: CD hook
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit cc1b2ce

Please sign in to comment.