Remove Azure deployment workflow and make docker-image workflow run on PR merge

This commit is contained in:
William Brawner 2024-03-14 21:36:58 -06:00 committed by github-actions[bot]
parent d81f77fcd7
commit bf0ef59714
2 changed files with 6 additions and 37 deletions

View file

@ -1,12 +1,14 @@
name: Publish Docker image
on:
push:
branches: main
tags:
- '*'
pull_request:
types:
closed
branches:
- 'main'
jobs:
push_to_registry:
if: github.event.pull_request.merged == true
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:

View file

@ -1,33 +0,0 @@
name: Deploy to Azure Static Web Apps
on:
push:
branches: main
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install Dependencies
run: npm install
- name: Test
run: npm run test
- name: Deploy
uses: Azure/static-web-apps-deploy@v1
with:
action: 'upload'
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
output_location: dist
skip_api_build: true