Merge pull request #7 from weak-kajuma/req #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'development' | |
jobs: | |
deplay-staging: | |
name: GAE deplay | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Copy product.app.yaml | |
if: github.ref == 'refs/heads/main' | |
run: | | |
cp product.app.yaml app.yaml | |
echo ${{ secrets.PRODUCT_SECRET }} | base64 -d > secret.yaml | |
- name: Copy develop.app.yaml | |
if: github.ref == 'refs/heads/development' | |
run: | | |
cp develop.app.yaml app.yaml | |
echo ${{ secrets.DEVELOP_SECRET }} | base64 -d > secret.yaml | |
- name: Deploy an App Engine app | |
id: deploy-app | |
uses: google-github-actions/deploy-appengine@v0.3.1 | |
with: | |
project_id: ${{ secrets.GCP_PROJECT_ID }} | |
deliverables: app.yaml | |
credentials: ${{ secrets.GCP_SA_KEY }} | |
version: v1 |