Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/files/empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "vrchat-openapi-test",
"version": "1.0.0",
"description": "VRChat API OpenAPI Specification",
"main": "index.js",
"scripts": {
"bundle": "echo ok"
},
"author": "",
"license": "MIT"
}
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
path: dist

pages:
if: ${{ startsWith(github.ref, 'refs/tags/v1') }}
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: bundle
runs-on: ubuntu-latest
name: Upload OpenAPI specification to GitHub Pages
Expand All @@ -58,14 +58,17 @@ jobs:
- name: Disable Jekyll for Github Pages
run: sudo touch dist/.nojekyll; sudo touch dist/index.html

- name: Prevent Cloudflare Pages (used for dev preview) from breaking
run: mkdir dist/dist; cp dist/openapi.yaml dist/dist/openapi.yaml; cp .github/files/empty.json dist/package.json

- name: Deploy Bundle to Github Pages 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: dist

release:
if: ${{ startsWith(github.ref, 'refs/tags/v1') }}
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: bundle
runs-on: ubuntu-latest
name: Release Bundle as new Version
Expand Down