Browse Source

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 4 years ago
parent
commit
d3995bc87e
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 4
      .ci-scripts/deploy-docs.sh
  2. 5
      .github/workflows/build-test-deploy.yaml

4
.ci-scripts/deploy-docs.sh

@ -45,4 +45,6 @@ git add . @@ -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

5
.github/workflows/build-test-deploy.yaml

@ -490,6 +490,11 @@ jobs: @@ -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

Loading…
Cancel
Save