Skip to content

Commit

Permalink
Attempt at github actions (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyunlam authored Oct 4, 2023
1 parent 6bc9a7b commit 4f6f7fe
Show file tree
Hide file tree
Showing 3 changed files with 2,908 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy documentation

on:
push:
branches:
- main

jobs:
skip-duplicates:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: 'true'
paths: '["src/**"]'

deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Create Doxygen
uses: mattnotmitt/[email protected]
with:
working-directory: './MIDAS/docs'
doxyfile-path: 'MIDAS/Doxyfile'

- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'docs/html'
destination-github-username: ISSUIUC
destination-repository-name: MIDAS-flight-docs
user-email: [email protected]
target-branch: main
target-directory: docs
Loading

0 comments on commit 4f6f7fe

Please sign in to comment.