Bump coverage from 7.6.4 to 7.6.7 (#408) #370
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 To GAE | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Authorize to Google Cloud | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: '${{ secrets.GOOGLE_SERVICE_ACCOUNT_CREDENTIALS_JSON }}' | |
- name: Deploy to App Engine | |
id: deploy | |
uses: google-github-actions/deploy-appengine@v2 | |
- name: cURL Test | |
run: curl "${{ steps.deploy.outputs.url }}" | |
- name: Set up Cloud SDK | |
uses: 'google-github-actions/setup-gcloud@v2' | |
- name: Delete Old App Versions | |
# delete all but latest 5 versions | |
run: | | |
gcloud app versions list \ | |
--format="value(version.id)" \ | |
--sort-by="~version.createTime" \ | |
| tail -n +5 \ | |
| xargs -r gcloud app versions delete --quiet | |
# make sure we didn't delete the current version | |
- name: cURL Test | |
run: curl "${{ steps.deploy.outputs.url }}" |