-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (31 loc) · 1.08 KB
/
deutschland_generator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on: [push]
jobs:
deutschland_generation:
name: "Deutschland Generation"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.7.8' ]
steps:
- uses: actions/checkout@v2
# Create default .spectral.yaml file used for linting if its not existing already
- name: "Create spectral file if it not exists"
continue-on-error: true
run: |
set -C; echo "extends: spectral:oas" > .spectral.yaml
# Runs a single command using the runners shell
- name: "Lint file"
uses: stoplightio/spectral-action@v0.8.2
with:
file_glob: "openapi.yaml"
- name: "Generate deutschland code"
uses: wirthual/deutschland-generator-action@latest
with:
openapi-file: ${{ github.workspace }}/openapi.yaml
commit-to-git: true
upload-to-pypi: true
upload-to-testpypi: false
pypi-token: ${{ secrets.PYPI_PRODUCTION }}
testpypi-token: ${{ secrets.PYPI_TEST }}
python-version: ${{ matrix.python-version }}