update github actions to a more streamlined workflow using gh matrix

This commit is contained in:
Amruth Pillai
2022-11-23 14:10:14 +01:00
parent b613764ccc
commit ab6ad65445
3 changed files with 24 additions and 129 deletions

View File

@ -8,9 +8,8 @@ on:
- completed
jobs:
deploy:
on-success:
runs-on: ubuntu-latest
steps:
- name: Install DigitalOcean CLI
uses: digitalocean/action-doctl@v2.2.0
@ -19,3 +18,9 @@ jobs:
- name: Create Deployment with Latest Version
run: doctl apps create-deployment ${{ secrets.DIGITALOCEAN_APP_ID }} --wait --force-rebuild
on-failure:
runs-on: ubuntu-latest
steps:
- name: Abruptly end the worklfow
run: exit 1