Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Oct 4, 2021
1 parent c7b7c06 commit d1661a4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ name: CI/CD

on:
push:
branches: ["**"]
tags-ignore: ["**"]
pull_request:
workflow_dispatch:
release:
types:
- published
types: [published]

jobs:

Expand Down Expand Up @@ -381,6 +383,7 @@ jobs:
website-deployment:
# ===================
name: 'Website Deployment'
if: always() && needs.build-and-test.result == 'success'
needs: [ build-and-test ]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -411,6 +414,7 @@ jobs:
python-packaging:
# =================
name: 'Python packaging'
if: always() && needs.build-and-test.result == 'success'
needs: [ build-and-test ]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -461,11 +465,8 @@ jobs:
- name: '[📦|scenario]️ Create sdist'
run: python -m build --sdist scenario/ -o dist/

- name: '[📦|gym-ignition]️ Create sdist'
run: python -m build --sdist .

- name: '[📦|gym-ignition]️ Create wheel'
run: python -m build --wheel .
- name: '[📦|gym-ignition]️ Create sdist and wheel'
run: python -m build .

# ================
# Upload artifacts
Expand All @@ -490,15 +491,22 @@ jobs:
upload_pypi:
# ============
name: Publish to PyPI
if: always() && needs.build-and-test.result == 'success' && needs.python-packaging.result == 'success'
needs:
- build-and-test
- python-packaging
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
# Devel branch produces pre-releases.
# Tagged versions produce stable releases.
# GitHub releases produce stable releases.

steps:

# Needed only to extract from the git repo the last revision
- name: '🔀 Clone repository'
uses: actions/checkout@master
- name: '🔀 Download all refs'
run: git fetch --prune --unshallow

- name: '⬇️ Download Python packages'
uses: actions/download-artifact@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ on:
paths:
- ".docker/*"
- ".github/workflows/docker.yml"
branches: ["**"]
tags-ignore: ["**"]
pull_request:
paths:
- ".docker/*"
- ".github/workflows/docker.yml"
workflow_dispatch:
schedule:
# Execute a weekly build on Monday at 2AM UTC
- cron: '0 2 * * 1'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Code Style

on:
push:
branches: ["**"]
tags-ignore: ["**"]
pull_request:
workflow_dispatch:

Expand Down

0 comments on commit d1661a4

Please sign in to comment.