Adds Team API #46
Workflow file for this run
This file contains hidden or 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: Destroy SwiftLeeds | |
| on: | |
| pull_request: | |
| types: [closed] | |
| jobs: | |
| destroy: | |
| if: github.repository_owner == 'SwiftLeeds' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Authenticate with Google Cloud | |
| uses: "google-github-actions/auth@v2" | |
| with: | |
| credentials_json: "${{ secrets.GAR_JSON_KEY }}" | |
| - name: "Set up Cloud SDK" | |
| uses: "google-github-actions/setup-gcloud@v2" | |
| - name: Destroy Google Cloud Run Servce | |
| run: gcloud run services delete --quiet --region europe-west2 swiftleeds-web-${{ github.head_ref || github.ref_name }} | |
| - name: Destroy GitHub Deployment | |
| uses: bobheadxi/deployments@v1 | |
| with: | |
| step: deactivate-env | |
| env: ${{ github.head_ref || github.ref_name }} | |