0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

ci: fix release workflow (#3376)

This commit is contained in:
Gao Sun 2023-03-13 11:22:01 +08:00 committed by GitHub
parent 9896390065
commit 8026bdbeb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,7 @@ jobs:
uses: silverhand-io/actions-node-pnpm-run-steps@v2
- name: Deploy database alteration
if: github.environment == 'dev'
if: ${{ (inputs.target || 'dev') == 'dev' }}
run: |
pnpm prepack
pnpm cli db alt deploy next
@ -166,14 +166,14 @@ jobs:
- name: Deploy core to containerapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.APP_NAME_CORE }}
images: ghcr.io/logto-io/logto:${{ env.DOCKER_TAG }}
app-name: ${{ vars.APP_NAME_CORE }}
images: ghcr.io/logto-io/logto:${{ vars.DOCKER_TAG }}
- name: Deploy cloud to containerapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.APP_NAME_CLOUD }}
images: ghcr.io/logto-io/cloud:${{ env.DOCKER_TAG }}
app-name: ${{ vars.APP_NAME_CLOUD }}
images: ghcr.io/logto-io/cloud:${{ vars.DOCKER_TAG }}
# Publish packages and create git tags if needed
publish-and-tag: