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:
parent
9cd9da4a53
commit
5a77a18fc0
5
.github/workflows/build-test-deploy.yaml
vendored
5
.github/workflows/build-test-deploy.yaml
vendored
|
@ -519,3 +519,8 @@ jobs:
|
||||||
run: sudo apt-get install gitstats
|
run: sudo apt-get install gitstats
|
||||||
- name: Run
|
- name: Run
|
||||||
run: ./.travis/build-gitstats.sh
|
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
|
||||||
|
|
|
@ -26,4 +26,7 @@ git add .
|
||||||
git commit --quiet -m "Deploy to GH pages from commit: $COMMIT"
|
git commit --quiet -m "Deploy to GH pages from commit: $COMMIT"
|
||||||
|
|
||||||
echo "Pushing to GH pages..."
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user