Fix CORS issue with allowed methods #2
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: OpenAPI Schema | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: ['master'] | |
jobs: | |
openapi: | |
name: OpenAPI Schema | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v25 | |
with: | |
nix_path: nixpkgs=channel:nixos-24.11 | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: cs2kz | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: generate schema | |
run: nix run .#openapi-schema > openapi.json | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: openapi.json | |
path: openapi.json |