-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use short sha to label evento-portal commit in build pipeline
- Loading branch information
Showing
1 changed file
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: build 🏭 integrate ⛙ zip 🗜️ | |
|
||
on: | ||
push: | ||
branches: [main] | ||
# branches: [main] | ||
|
||
jobs: | ||
build: | ||
|
@@ -69,30 +69,33 @@ jobs: | |
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "Add webapp-schulverwaltung build #${{ github.sha }}" | ||
git push | ||
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-8) | ||
echo "::debug::Add webapp-schulverwaltung build ${SHORT_SHA}" | ||
echo "::debug::Add webapp-schulverwaltung build $SHORT_SHA" | ||
#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] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: dist # The folder the action should deploy. | ||
# 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] | ||
# with: | ||
# branch: gh-pages # The branch the action should deploy to. | ||
# folder: dist # The folder the action should deploy. |