Skip to content

Commit

Permalink
Fix workflows & refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIMP committed Oct 30, 2023
1 parent 0b58558 commit b1368bd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Documentation

on:
release:
types: [published]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build_doc_and_deploy:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r26
add-to-path: false
link-to-sdk: true

- name: Build doc
run: gradle dokkaHtml

- name: Deploy doc
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./zenoh-kotlin/build/dokka/html
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Publish
on:
release:
types: [published]
schedule:
- cron: "0 1 * * 1-5"
workflow_dispatch:

env:
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,3 @@ jobs:

- name: Gradle Test
run: gradle jvmTest --info

build_doc_and_deploy:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build doc
run: gradle dokkaHtml

- name: Deploy doc
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./zenoh-kotlin/build/dokka/html

0 comments on commit b1368bd

Please sign in to comment.