-
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.
feat: automatic company manifest update
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
|
@@ -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 |