Skip to content

Commit

Permalink
feat: automatic company manifest update
Browse files Browse the repository at this point in the history
  • Loading branch information
esoadamo committed Jul 27, 2024
1 parent 3e59122 commit 6da9ede
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy-manifest-to-web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: generate-manifest
on:
push:
branches:
- 'master'
- 'main'
- 'prod'
paths:
- 'manifest.json'


jobs:
deploy-qrgamestudio-com:
runs-on: ubuntu-latest
env:
DEPLOY_SSH_KEY: ${{ secrets.WEB_QRGAMES_COM_DEPLOY_SSH_KEY }}
steps:
- run: mkdir src
- uses: actions/checkout@v2
with:
fetch-depth: 100
path: 'src'
- name: run deploy
shell: bash
run: |
eval `ssh-agent -s`
echo "$DEPLOY_SSH_KEY" | tr -d '\r' | ssh-add - &&
git clone [email protected]:QRGameStudio/web-qrgamestudio-com.git &&
cp "src/manifest.json" "web-qrgamestudio-com/src/lib/manifest.json"
git config --global user.email "[email protected]" &&
git config --global user.name "QR Bot" &&
cd web-qrgamestudio-com/src/lib/ &&
git diff --exit-code || { echo "Nothing to do"; exit 0 } &&
git add manifest.json &&
git commit -m "chore: automatic manifest update" &&
git push
1 change: 1 addition & 0 deletions .github/workflows/generate-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
python3 generate-manifest.py &&
git config --global user.email "[email protected]" &&
git config --global user.name "QR Bot" &&
git diff --exit-code || { echo "Nothing to do"; exit 0 } &&
git add manifest.json README.md &&
git commit -m "chore: automatic manifest update" &&
git push

0 comments on commit 6da9ede

Please sign in to comment.