mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-15 14:02:58 +00:00
Combine jobs within workflows
This commit is contained in:
11
.github/workflows/docker.yml
vendored
11
.github/workflows/docker.yml
vendored
@@ -48,21 +48,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
COMMIT_MSG: "${{github.event.head_commit.message}}"
|
COMMIT_MSG: "${{github.event.head_commit.message}}"
|
||||||
WIKI_PATH: ../wiki
|
WIKI_PATH: ../wiki
|
||||||
|
|
||||||
push:
|
|
||||||
name: Push Docker Images
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
steps:
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: >
|
run: >
|
||||||
echo '${{secrets.DOCKERHUB_PASSWORD}}' | docker login --username
|
echo '${{secrets.DOCKERHUB_PASSWORD}}' | docker login --username
|
||||||
'${{secrets.DOCKERHUB_USERNAME}}' --password-stdin
|
'${{secrets.DOCKERHUB_USERNAME}}' --password-stdin
|
||||||
- name: Push Images to DockerHub
|
- name: Push Images to DockerHub
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: make -C main push-all
|
run: make -C main push-all
|
||||||
- name: Push Wiki to GitHub
|
- name: Push Wiki to GitHub
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: make -C main git-commit
|
run: make -C main git-commit
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
10
.github/workflows/sphinx.yml
vendored
10
.github/workflows/sphinx.yml
vendored
@@ -30,20 +30,14 @@ jobs:
|
|||||||
make dev-env
|
make dev-env
|
||||||
- name: Build Documentation
|
- name: Build Documentation
|
||||||
run: make docs
|
run: make docs
|
||||||
|
|
||||||
gettext:
|
|
||||||
name: Update Translation Source Strings
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
steps:
|
|
||||||
- name: Extract Source Strings
|
- name: Extract Source Strings
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
working-directory: docs
|
working-directory: docs
|
||||||
run: |
|
run: |
|
||||||
make gettext
|
make gettext
|
||||||
sphinx-intl update -p _build/gettext -l en
|
sphinx-intl update -p _build/gettext -l en
|
||||||
- name: Push Strings to Master
|
- name: Push Strings to Master
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
run: make git-commit
|
run: make git-commit
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Reference in New Issue
Block a user