Skip to content

Commit

Permalink
[actions] split doxygen/gh-pages (tag) from tests (push/PR).
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushieno committed Jun 14, 2021
1 parent 1e22b52 commit 414084e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: build dist

on:
create:
tags:
push:
pull_request:

jobs:
linux-build:
Expand All @@ -21,10 +21,3 @@ jobs:
echo y | sudo apt-get install doxygen
- name: run tests
run: clang cmidi2_test.c -o cmidi2_test && ./cmidi2_test
- name: generate documentation
run: doxygen
- name: deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: html
28 changes: 28 additions & 0 deletions .github/workflows/actions_tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build dist

on:
create:
tags:

jobs:
linux-build:
name: build on linux
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: apt update
run: |
sudo apt-get update
- name: apt install
run: |
echo y | sudo apt-get install doxygen
- name: generate documentation
run: doxygen
- name: deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: html

0 comments on commit 414084e

Please sign in to comment.