mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 10:57:45 +08:00
ci: fix unexpected build and deploy behavior
This commit is contained in:
8
.github/workflows/deploy-website.yaml
vendored
8
.github/workflows/deploy-website.yaml
vendored
@@ -48,18 +48,20 @@ jobs:
|
||||
run: |
|
||||
if [[ "${{ github.event_name }}" != "workflow_dispatch" ]]; then
|
||||
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
|
||||
echo "AZURE_TARGET_ENV=Production" >> $GITHUB_ENV
|
||||
echo "AZURE_TARGET_ENV=''" >> $GITHUB_ENV
|
||||
else
|
||||
echo "AZURE_TARGET_ENV=dev" >> $GITHUB_ENV
|
||||
fi
|
||||
else
|
||||
if [[ "${{ github.event.inputs.deploy-to-prod-env }}" == "true" ]]; then
|
||||
echo "AZURE_TARGET_ENV=Production" >> $GITHUB_ENV
|
||||
echo "AZURE_TARGET_ENV=''" >> $GITHUB_ENV
|
||||
else
|
||||
echo "AZURE_TARGET_ENV=dev" >> $GITHUB_ENV
|
||||
fi
|
||||
fi
|
||||
echo "Deployment environment: ${{ env.AZURE_TARGET_ENV }}"
|
||||
|
||||
- name: Show environment
|
||||
run: echo ${{ env.AZURE_TARGET_ENV }}
|
||||
|
||||
- name: Deploy to Azure
|
||||
id: deploy
|
||||
|
||||
1
.github/workflows/website-build-test.yml
vendored
1
.github/workflows/website-build-test.yml
vendored
@@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- "master"
|
||||
- "dev"
|
||||
paths:
|
||||
- "docs/**"
|
||||
- "website/**"
|
||||
|
||||
Reference in New Issue
Block a user