mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 15:02:57 +00:00
Merge pull request #1376 from mathbunnyru/asalikhov/main_branch
Make github actions work for main branch
This commit is contained in:
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
@@ -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' || github.ref == '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' || github.ref == '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' || github.ref == 'refs/heads/main'
|
||||
run: make -C main push-all
|
||||
|
4
.github/workflows/sphinx.yml
vendored
4
.github/workflows/sphinx.yml
vendored
@@ -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' || github.ref == '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' || github.ref == 'refs/heads/main'
|
||||
run: make git-commit
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
Reference in New Issue
Block a user