Skip to content

Add files via upload #1

Add files via upload

Add files via upload #1

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/[email protected]
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_API_TOKEN }}
testpypi-token: ${{ secrets.TEST_PYPI_API_TOKEN }}
python-version: ${{ matrix.python-version }}