Skip to content

Commit

Permalink
Test Pipeline to generate api spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraust committed Feb 18, 2024
1 parent 53ab164 commit 91fb4ea
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/swagger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Generate Artifacts

on: push

jobs:
build_binary:
# if: startsWith(github.ref, 'refs/tags/v')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10"

- run: pip install -r requirements.txt
- run: python3 manage.py generate_swagger -f yaml -u http://127.0.0.1 dist/OSCR-django.yaml
- uses: actions/upload-artifact@v2
with:
name: build_binary
path: dist/*

release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [ build_binary ]
name: Create release
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Download
uses: actions/download-artifact@v3
with:
name: build_binary
path: dist
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: dist/*

0 comments on commit 91fb4ea

Please sign in to comment.