Right align grades on mobile & improve layout #721 #114
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
name: Build, Integrate & ZIP | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
dist | |
scripts | |
key: build-${{ github.sha }} | |
- name: Read .nvmrc | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
id: nvm | |
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
cache: npm | |
- name: Build 🏭 | |
run: | | |
npm install | |
npm run build:prod | |
cp README.md dist && cp -r doc dist | |
integrate: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
dist | |
scripts | |
key: build-${{ github.sha }} | |
- name: Checkout evento-portal | |
uses: actions/checkout@v4 | |
with: | |
repository: bkd-mba-fbi/evento-portal | |
token: ${{ secrets.WEBAPP_TO_PORTAL_TOKEN }} | |
path: ./evento-portal | |
- name: Copy new build to event-portal | |
run: | | |
./scripts/copy-to-portal.sh evento-portal/public/apps/webapp-schulverwaltung | |
- 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 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@v4 | |
with: | |
path: | | |
dist | |
scripts | |
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/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: dist # The folder the action should deploy. |