fix(doxygen): Re-enable deploying of doxygen 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/doxygen as a deploy key.
reviewable/pr6493/r4
Anthony Bilinski 2022-02-21 08:42:40 -08:00
parent e5d138f79c
commit d3995bc87e
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
2 changed files with 8 additions and 1 deletions

View File

@ -45,4 +45,6 @@ git add .
git commit --quiet -m "Deploy to GH pages from commit: $GIT_CHASH"
echo "Pushing to GH pages..."
git push --force --quiet "https://${GH_TOKEN}@github.com/qTox/doxygen.git" master:gh-pages &> /dev/null
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/doxygen.git" master:gh-pages

View File

@ -490,6 +490,11 @@ jobs:
fetch-depth: 0
- name: Run
run: ./.ci-scripts/build-docs.sh
- name: Deploy
if: github.ref == 'refs/heads/master'
env:
access_key: ${{ secrets.GITSTATS_DEPLOY_KEY }}
run: ./.ci-scripts/deploy-docs.sh
build-gitstats:
name: Gitstats
runs-on: ubuntu-latest