From a812b9bd512c7f6eb52e656ab52f2ce1956616a2 Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Thu, 23 May 2024 15:16:39 +0400 Subject: [PATCH] Tweak github workflows. --- .github/workflows/api-docs.yml | 8 +++++--- .github/workflows/{cmake.yml => build-and-test.yml} | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) rename .github/workflows/{cmake.yml => build-and-test.yml} (96%) diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml index d4c4f0d..97cd17c 100644 --- a/.github/workflows/api-docs.yml +++ b/.github/workflows/api-docs.yml @@ -2,6 +2,9 @@ name: API Documentation on: [push, workflow_dispatch] +permissions: + contents: write + jobs: deploy: runs-on: ubuntu-latest @@ -36,13 +39,12 @@ jobs: - name: Create .nojekyll (ensures pages with underscores work on gh pages) shell: bash - run: touch doc/html/.nojekyll + run: touch build/doc/html/.nojekyll - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages - folder: doc/html + folder: build/doc/html # target-folder: / diff --git a/.github/workflows/cmake.yml b/.github/workflows/build-and-test.yml similarity index 96% rename from .github/workflows/cmake.yml rename to .github/workflows/build-and-test.yml index 0bdeb4c..db2c8fb 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/build-and-test.yml @@ -1,4 +1,4 @@ -name: CMake +name: Build and Test on: [push, workflow_dispatch] @@ -18,7 +18,7 @@ jobs: - os: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Create Build Environment run: cmake -E make_directory build