Skip to content

Commit

Permalink
fix config error
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Apr 12, 2023
1 parent f642e77 commit e22a640
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
- "main"

jobs:
outputs:
releases: ${{ steps.releases.outputs.releases }}
steps:
- id: releases
run: |
echo "releases=$(curl -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/${{github.repository}}/releases?per_page=100" | jq -c '[.[].tag_name]')" >> $GITHUB_OUTPUT
setup:
runs-on: ubuntu-latest
outputs:
releases: ${{ steps.releases.outputs.releases }}
steps:
- id: releases
run: |
echo "releases=$(curl -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/${{github.repository}}/releases?per_page=100" | jq -c '[.[].tag_name]')" >> $GITHUB_OUTPUT
releases:
needs: setup
runs-on: ubuntu-latest
Expand All @@ -32,6 +34,7 @@ jobs:
path: |
deploy/releases
deploy:
needs: releases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -44,7 +47,7 @@ jobs:
mkdir ./deploy
cp -r dist ./deploy
cp -r assets ./deploy
cp -r index.html ./deploy
cp index.html ./deploy
- name: Restore releases
uses: actions/download-artifact@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
urls: [
{ url: "./releases/v0.3.0/builder-oapi.yaml", name: "v0.3.0" },
{ url: "./releases/v0.2.0/builder-oapi.yaml", name: "v0.2.0" },
{ url: "./releases/v0.1.0/builder-oapi.yaml", name: "v0.1.0" },
{ url: "./releases/v0.0.0/builder-oapi.yaml", name: "v0.0.0" },
{ url: "./releases/v0.3.0/builder-oapi.json", name: "v0.3.0" },
{ url: "./releases/v0.2.0/builder-oapi.json", name: "v0.2.0" },
{ url: "./releases/v0.1.0/builder-oapi.json", name: "v0.1.0" },
{ url: "./releases/v0.0.0/builder-oapi.json", name: "v0.0.0" },
{ url: "./builder-oapi.yaml", name: "dev" }
],
basePath: "/",
Expand Down

0 comments on commit e22a640

Please sign in to comment.