diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ebfb38dc..5fec352f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -56,18 +56,18 @@ jobs: - name: Run Post-Build Hooks run: make -C main hook-all - name: Push Wiki to GitHub - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || 'refs/heads/main' # Pass GITHUB_REPOSITORY directly to avoid conflict with GitHub Actions built-in env var run: make -C main git-commit GITHUB_REPOSITORY='${{github.repository}}.wiki' env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} LOCAL_PATH: ../wiki - name: Login to Docker Hub - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || 'refs/heads/main' uses: docker/login-action@v1 with: username: ${{secrets.DOCKERHUB_USERNAME}} password: ${{secrets.DOCKERHUB_TOKEN}} - name: Push Images to DockerHub - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || 'refs/heads/main' run: make -C main push-all diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 033e974e..7a1899c9 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -35,13 +35,13 @@ jobs: - name: Build Documentation run: make docs - name: Extract Source Strings - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || 'refs/heads/main' working-directory: docs run: | make gettext sphinx-intl update -p _build/gettext -l en - name: Push Strings to Master - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' || 'refs/heads/main' run: make git-commit env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}