Skip to content

Commit

Permalink
Switch to publish branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Oct 30, 2023
1 parent fecff88 commit 6b43e46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/gh-pages'
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -54,7 +53,7 @@ jobs:
PUSH_TOKEN: ${{ secrets.GH_DEPLOY_PUSH_TOKEN }}
run: |
make deploy RELEASE=dev ALIAS=master
git push https://[email protected]/${{ github.repository }} gh-pages
git push https://[email protected]/${{ github.repository }} publish
- name: Setup tmate session for debug
if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish docs
on:
push:
branches:
- gh-pages
- publish
workflow_dispatch:
inputs:
debug_enabled:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 comment on commit 6b43e46

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.