Skip to content

Commit

Permalink
replace deploy push trigger with release trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
andrechen77 committed Nov 28, 2023
1 parent 128fecf commit e1bdef2
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/firebase-hosting-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# https://github.com/firebase/firebase-tools

name: firebase-hosting-deploy
run-name: Deploy to Firebase Hosting on push to deploy
run-name: Deploy to Firebase Hosting on release
on:
push:
branches:
- deploy
release:
types:
- released
jobs:
build_and_deploy_hosting:
runs-on: ubuntu-latest
Expand All @@ -33,16 +33,3 @@ jobs:
args: deploy --only firestore
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_AUTOAQUAPONICS_V2 }}
add_tag:
runs-on: ubuntu-latest
if: ${{ always() }}
needs:
- build_and_deploy_hosting
- deploy_firestore
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Adding tag with date and time
run: |
CURRENT_DATETIME=$(date +'deploy%Y-%m-%d-%H-%M-%S')
git tag $CURRENT_DATETIME

0 comments on commit e1bdef2

Please sign in to comment.