Skip to content

Commit

Permalink
Modified doccumentation creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nguy8tri committed Sep 17, 2024
1 parent 9c8d8ae commit afc6043
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
container: nguy8tri/huskysat:latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build all (Twice)
run: (make compile || make compile)

Expand All @@ -20,15 +20,15 @@ jobs:
container: nguy8tri/huskysat:latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Test (Twice)
run: (make test || make test)

lint:
runs-on: ubuntu-latest
container: nguy8tri/huskysat:latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Stylecheck
run: make google_stylecheck
- name: Test Stylecheck
Expand All @@ -40,11 +40,11 @@ jobs:
runs-on: ubuntu-latest
container: nguy8tri/huskysat:latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Coverage (Twice)
run: (make coverage || make coverage)
- name: Upload Coverage Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Coverage Report
path: build/documentation/coverage
Expand All @@ -54,20 +54,40 @@ jobs:
container: nguy8tri/huskysat:latest
needs: [build, lint, coverage]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: make coverage
run: make coverage
- name: Doxygen
run: make doxygen_generate
- name: Install rsync
run: apt install -y rsync
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
uses: JamesIves/github-pages-deploy-action@v4
with:
name: Documentation
branch: documentation
path: build/documentation

deploy:
documentation-upload:
needs: documentation
steps:
- uses: actions/checkout@v4
with:
ref: documentation
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: .
destination: ./_site
verbose: true
- name: Upload Pages Artifact
with:
path: ./_site
name: github-pages
retention-days: 1

documentation-deploy:
needs: documentation-upload

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
Expand Down

0 comments on commit afc6043

Please sign in to comment.