Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Dec 7, 2023
1 parent bd303f9 commit a2ec7dd
Showing 1 changed file with 34 additions and 35 deletions.
69 changes: 34 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,42 +55,41 @@ jobs:

- name: Copy new build to event-portal
run: |
ls -l
./scripts/copy-to-portal.sh evento-portal/public/apps/webapp-schulverwaltung
git status
# - name: Commit and push to evento-portal
# run: |
# cd ./evento-portal

# if [ -z "$(git status -s)" ]; then
# echo "Nothing to commit"
# else
# git config user.name github-actions
# git config user.email [email protected]
# git add .
# SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-8)
# git commit -m "Add webapp-schulverwaltung build $SHORT_SHA"
# git push
# fi

# zip:
# runs-on: ubuntu-latest
# needs: build

# steps:
# - uses: actions/checkout@v4

# - uses: actions/cache@v3
# with:
# path: dist
# key: build-${{ github.sha }}

# - name: Zip 🗜️
# run: |
# (cd dist && zip --recurse-paths webapp-schulverwaltung.zip *)
# mv dist/webapp-schulverwaltung dist/app
# sed -e "s~https://eventotest.api~$API_URL~g" dist/app/settings.example.js > dist/app/settings.js
- name: Commit and push to evento-portal
run: |
cd ./evento-portal
if [ -z "$(git status -s)" ]; then
echo "Nothing to commit"
else
git config user.name github-actions
git config user.email github-actions@github.com
git add .
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-8)
git st
# git commit -m "Add webapp-schulverwaltung build $SHORT_SHA"
# git push
fi
zip:
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: dist
key: build-${{ github.sha }}

- name: Zip 🗜️
run: |
(cd dist && zip --recurse-paths webapp-schulverwaltung.zip *)
mv dist/webapp-schulverwaltung dist/app
sed -e "s~https://eventotest.api~$API_URL~g" dist/app/settings.example.js > dist/app/settings.js
# - name: Upload
# uses: JamesIves/[email protected]
Expand Down

0 comments on commit a2ec7dd

Please sign in to comment.