From 7b548a0adf608580e597de338ffabed6a1fbe688 Mon Sep 17 00:00:00 2001 From: Bram Wijnands Date: Sat, 2 Mar 2024 17:24:53 +0000 Subject: [PATCH] Publish DokkaHTml to pages --- .github/workflows/ci.yml | 3 +-- .github/workflows/docs.yml | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 567c46e..360c09e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,6 @@ name: build on: - # Trigger the workflow on push or pull request, push: branches: - main @@ -59,4 +58,4 @@ jobs: uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} - slug: Bram--/bggclient + slug: Bram--/bggclient diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..b93b09b --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,25 @@ +name: Build and Deploy +on: + push: + branches: + - main + - release + workflow_dispatch: + +permissions: + contents: write + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + run: ./gradlew dokkaHtml + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: build/dokka/html \ No newline at end of file