Add benefit rules prompt #106
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 archive.zip and trigger webapp deployment | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: check out repository | |
uses: actions/checkout@v3 | |
- name: Archive Repository | |
run: zip -r archive.zip . -x "*.git*" -x "*.github*" | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
- name: Upload to zip-archive branch | |
run: | | |
git checkout --orphan temp-branch | |
git rm -rf . | |
git add -f archive.zip | |
git commit -m "Upload latest zip archive" | |
git branch -M zip-archive | |
git push -fu origin zip-archive | |
dispatch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dispatch event to trigger webapp deployment | |
uses: peter-evans/repository-dispatch@v3 | |
with: | |
token: ${{ secrets.PAT_SECRET }} | |
repository: Citizen-Knowledge-Graph/foerderfunke-webapp | |
event-type: external-webapp-deployment-trigger |