tests patch isoformat marshmallow #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish new API spec | |
on: [push] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.8' | |
- uses: actions/cache@v3 | |
id: cache-dependencies | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/**.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install build | |
- run: cp .env-example .env | |
- name: Generate api-spec.json | |
run: python scripts/get-json-spec.py | |
- name: Upload api-spec.json as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: API Specification | |
path: api-spec.json | |
- name: Generate & publish client | |
uses: thechristophe/generate-esm-api-client@v1 | |
with: | |
author: EOSC-Performance | |
package_name: '@eosc-perf/eosc-perf-client' | |
spec_file: api-spec.json | |
repo_url: git+ssh://git@github.com/${{ github.repository }}.git | |
npm_token: ${{ secrets.NPM_TOKEN }} | |
snapshot: true | |
npm_registry: https://registry.npmjs.org |