Skip to content

Commit

Permalink
remove building step when pushed to main, only deploy documentation (#54
Browse files Browse the repository at this point in the history
)
  • Loading branch information
erikgrahn13 authored Aug 19, 2024
1 parent cb66c0f commit 742b350
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Audio CI
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

Expand Down Expand Up @@ -53,7 +51,7 @@ jobs:
!build/_deps/juce-*/
- name: Upload build artifact
if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/main' && github.event_name == 'push'
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: doxygen-docs
Expand Down Expand Up @@ -87,20 +85,3 @@ jobs:

- name: Run Tests
run: ctest --preset Release

deploy:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: test
runs-on: ubuntu-latest

steps:
- name: Download Doxygen Artifacts
uses: actions/download-artifact@v4
with:
name: doxygen-docs

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy Documentation

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest

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

- name: Download Doxygen Artifacts
uses: actions/download-artifact@v4
with:
name: doxygen-docs

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/docs/html

0 comments on commit 742b350

Please sign in to comment.