From 577afee2f6d216d26f70c89c76fa5f02478548d2 Mon Sep 17 00:00:00 2001 From: Joel Van Eenwyk Date: Fri, 17 May 2024 19:36:53 -0700 Subject: [PATCH] Update workflows to trigger on branches 'develop' and 'main' --- .github/workflows/build.yml | 4 ++-- .github/workflows/gh-pages.yml | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 98a89a259..a13ed08c2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,9 @@ name: build on: push: - branches: [master] + branches: [main, develop] pull_request: - branches: [master] + branches: [main, develop] env: CARGO_TERM_COLOR: always diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 98858073d..d6cd42aa4 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,21 +1,24 @@ name: Build and deploy Github pages on: push: - branches: - - master + branches: [develop] paths: - "docs/**" - "gen-docs.ts" - "crates/eww/src/widgets/widget_definitions.rs" - "crates/eww/src/config/inbuilt.rs" - ".github/workflows/**" + jobs: build: name: Build mdBook runs-on: ubuntu-latest steps: # Checkout - - uses: actions/checkout@master + - uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 # Build widget documentation - name: Use deno to build widget documentation