1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(gitstats): Re-enable deploying of gitstats to qtox.github.io

Hasn't been run since the travis days.

Now managed through a deploy key rather than an access token to limit scope to
a single repo. Private key is stored in qTox/qTox as a repository secret, and
the public portion is saved to qTox/gitstats as a deploy key.
This commit is contained in:
Anthony Bilinski 2022-02-16 08:55:08 -08:00
parent 9cd9da4a53
commit 5a77a18fc0
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
2 changed files with 9 additions and 1 deletions

View File

@ -519,3 +519,8 @@ jobs:
run: sudo apt-get install gitstats
- name: Run
run: ./.travis/build-gitstats.sh
- name: Deploy
if: github.ref == 'refs/heads/master'
env:
access_key: ${{ secrets.GITSTATS_DEPLOY_KEY }}
run: ./.travis/deploy-gitstats.sh

View File

@ -26,4 +26,7 @@ git add .
git commit --quiet -m "Deploy to GH pages from commit: $COMMIT"
echo "Pushing to GH pages..."
git push --force --quiet "https://${GH_TOKEN_GITSTATS}@github.com/qTox/gitstats.git" master:gh-pages &> /dev/null
touch /tmp/access_key
chmod 600 /tmp/access_key
echo "$access_key" > /tmp/access_key
GIT_SSH_COMMAND="ssh -i /tmp/access_key" git push --force --quiet "git@github.com/qTox/gitstats.git" master:gh-pages