Skip to content

Commit

Permalink
Add workflow to update when pushing theme submodule update
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-arthur committed Sep 19, 2024
1 parent e98444c commit cea2740
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/update-theme-submodule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Update Post45 Theme Submodule

on:
push:
paths:
- 'plugins/themes/post45'
workflow_dispatch: # Add this line to allow manual triggering

jobs:
update-submodule:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true

- name: Update submodule
run: |
cd plugins/themes/post45
git pull origin main
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: . # Deploy the updated repository

0 comments on commit cea2740

Please sign in to comment.