From 6b43e466930de2586fc1eca47e842accc6cf251e Mon Sep 17 00:00:00 2001 From: Sergei Lukianov Date: Mon, 30 Oct 2023 15:58:57 -0700 Subject: [PATCH] Switch to publish branch --- .github/workflows/ci.yaml | 3 +-- .github/workflows/publish.yaml | 2 +- Makefile | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9879402..dce1351 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,7 +21,6 @@ concurrency: jobs: build: runs-on: ubuntu-latest - if: github.ref != 'refs/heads/gh-pages' steps: - uses: actions/checkout@v4 with: @@ -54,7 +53,7 @@ jobs: PUSH_TOKEN: ${{ secrets.GH_DEPLOY_PUSH_TOKEN }} run: | make deploy RELEASE=dev ALIAS=master - git push https://$PUSH_TOKEN@github.com/${{ github.repository }} gh-pages + git push https://$PUSH_TOKEN@github.com/${{ github.repository }} publish - name: Setup tmate session for debug if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3f52f8b..fbcbd92 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -3,7 +3,7 @@ name: Publish docs on: push: branches: - - gh-pages + - publish workflow_dispatch: inputs: debug_enabled: diff --git a/Makefile b/Makefile index 4492ec6..cf06d51 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,6 @@ ALIAS ?= master .PHONY: deploy deploy: docker ## Deploy documentation version with mike. - $(RUN) mike deploy -u $(RELEASE) $(ALIAS) + $(RUN) mike deploy -b publish -u $(RELEASE) $(ALIAS) # TODO we need to "deploy dev" in master and "deploy -u alpha-x latest" in release/alpha-x branches \ No newline at end of file