Merge remote-tracking branch 'origin/main'
All checks were successful
Build Docs With Doxygen / Explore-Gitea-Actions (push) Successful in 1m2s
All checks were successful
Build Docs With Doxygen / Explore-Gitea-Actions (push) Successful in 1m2s
This commit is contained in:
25
.gitea/workflows/doccy.yaml
Normal file
25
.gitea/workflows/doccy.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Build Docs With Doxygen
|
||||
run-name: Building documentation for ${{ gitea.repository }}.
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
- run: echo "The workflow is now ready to build your docs on the runner."
|
||||
- run: echo "Copying SSH key for file transfer into runner."
|
||||
- run: echo "${{ secrets.SSHKEY }}" > /id_rsa
|
||||
- run: chmod 600 /id_rsa
|
||||
- run: echo "Installing doxygen on runner."
|
||||
- run: apt-get update && apt-get install -y doxygen
|
||||
- run: echo "Building documentation."
|
||||
- run: doxygen
|
||||
- run: echo "Copying built documentation to doc site."
|
||||
- run: scp -o "IdentitiesOnly=yes" -o "StrictHostKeyChecking=no" -i /id_rsa -P ${{ secrets.SSHPORT }} -r html ${{ secrets.SSHUSER }}@${{ secrets.SSHIP }}:/var/www/html/doccy/$(echo "${{ gitea.repository }}" | cut -f 2 -d '/')
|
||||
- run: echo "This job's status is ${{ job.status }}."
|
Reference in New Issue
Block a user