Skip to content

Commit

Permalink
Set working-directory to nfc-reader-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanheemstra committed Dec 18, 2024
1 parent 246fcac commit e7b3057
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ on:
jobs:
generate-docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./nfc-reader-docs

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Echo Working Directory
run: |
pwd
ls -la
echo ${{ github.workspace }}

- name: Install Dependencies
run: |
Expand All @@ -34,47 +32,39 @@ jobs:
- name: Setup PlantUML
run: |
pwd
ls -la
wget https://github.com/plantuml/plantuml/releases/download/v1.2024.3/plantuml-1.2024.3.jar
sudo mkdir -p /usr/local/bin
sudo mv plantuml-1.2024.3.jar /usr/local/bin/plantuml.jar
- name: Configure Doxygen
run: |
pwd
ls -la
cd ${{ github.workspace }}/nfc-reader-docs/docs
cd docs
sed -i 's/GENERATE_LATEX = NO/GENERATE_LATEX = YES/' Doxyfile
sed -i 's/LATEX_OUTPUT = latex/LATEX_OUTPUT = pdf/' Doxyfile
sed -i 's/GENERATE_PDF = NO/GENERATE_PDF = YES/' Doxyfile
- name: Generate Documentation
run: |
pwd
ls -la
cd ${{ github.workspace }}/nfc-reader-docs/docs
cd docs
doxygen Doxyfile
- name: Compile LaTeX to PDF
run: |
pwd
ls -la
cd ${{ github.workspace }}/nfc-reader-docs/docs/pdf/latex
cd docs/pdf/latex
make
- name: Create Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'workflow_dispatch'
with:
files: |
${{ github.workspace }}/nfc-reader-docs/docs/pdf/latex/refman.pdf
docs/pdf/latex/refman.pdf
name: Hardware Documentation Release
tag_name: docs-v${{ github.sha }}

- name: Upload PDF Artifact
uses: actions/upload-artifact@v4
with:
name: nfc-reader-documentation
path: ${{ github.workspace }}/nfc-reader-docs/docs/pdf/latex/refman.pdf
path: nfc-reader-docs/docs/pdf/latex/refman.pdf
retention-days: 30

0 comments on commit e7b3057

Please sign in to comment.