Skip to content

Commit

Permalink
split the github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jkpe committed Dec 19, 2024
1 parent e463138 commit 8dd8972
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy-app-platform-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Update App

on:
workflow_dispatch:
pull_request:
branches:
- '*'

permissions:
contents: read

jobs:
deploy-app:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy the app
uses: digitalocean/app_action/deploy@v2
# env:
# SOME_SECRET_FROM_REPOSITORY: ${{ secrets.SOME_SECRET_FROM_REPOSITORY }}
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
project_id: ${{ secrets.DIGITALOCEAN_PROJECT_ID }}
print_build_logs: true
print_deploy_logs: true
deploy_pr_preview: true
5 changes: 1 addition & 4 deletions .github/workflows/deploy-app-platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
push:
branches:
- main
pull_request:
branches:
- '*'

permissions:
contents: read
Expand All @@ -27,4 +24,4 @@ jobs:
project_id: ${{ secrets.DIGITALOCEAN_PROJECT_ID }}
print_build_logs: true
print_deploy_logs: true
deploy_pr_preview: true
deploy_pr_preview: false

0 comments on commit 8dd8972

Please sign in to comment.