Commit db4c2868 authored by Peter Parente's avatar Peter Parente Committed by GitHub

Merge pull request #1136 from parente/test-gh-actions

Combine jobs within workflows
parents 63fdb968 01013cf9
...@@ -48,21 +48,16 @@ jobs: ...@@ -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 }}
......
...@@ -30,20 +30,14 @@ jobs: ...@@ -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 }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment