Skip to content

Commit

Permalink
Split build copying and commit into separat steps #70
Browse files Browse the repository at this point in the history
  • Loading branch information
caebr committed Oct 25, 2023
1 parent 3ea91db commit 9177bd7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/buildDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ jobs:
path: dist
key: build-${{ env.GITHUB_SHA }}

- name: Checkout
- name: Checkout evento-portal
uses: actions/checkout@v2
with:
repository: bkd-mba-fbi/evento-portal
token: ${{ secrets.GITHUB_TOKEN }}
path: ./evento-portal

- name: Commit
- name: Copy new build to event-portal
run: |
# Replace all files except settings.js and index.html with the new build, deleting any unnecessary existing files
rsync -av --exclude={settings.js,index.html} --delete dist/webapp-schulverwaltung/ evento-portal/public/apps/webapp-schulverwaltung/
Expand All @@ -61,6 +61,8 @@ jobs:
TMP=$(grep -o '<style>@import.*</noscript>' dist/webapp-schulverwaltung/index.html | sed 's/\\/\\\\/g' | sed 's/\//\\\//g')
sed -i "s/.*@import.*/ $TMP/" evento-portal/public/apps/webapp-schulverwaltung/index.html
- name: Commit and push to evento-portal
run: |
cd ./evento-portal
git add .
git status
Expand Down

0 comments on commit 9177bd7

Please sign in to comment.