Remove Azure deployment workflow and make docker-image workflow run on PR merge
This commit is contained in:
parent
d81f77fcd7
commit
bf0ef59714
2 changed files with 6 additions and 37 deletions
10
.github/workflows/docker-image.yml
vendored
10
.github/workflows/docker-image.yml
vendored
|
@ -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:
|
||||
|
|
33
.github/workflows/main.yml
vendored
33
.github/workflows/main.yml
vendored
|
@ -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
|
Loading…
Reference in a new issue