generated from peter-evans/swagger-github-pages
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from solvedac/typespec
TypeSpec 적용 + alpha
- Loading branch information
Showing
134 changed files
with
5,209 additions
and
2,453 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: pnpm | ||
- run: pnpm i | ||
- run: pnpm build | ||
- uses: stoplightio/[email protected] | ||
with: | ||
file_glob: 'tsp-output/*.yaml' | ||
page-deployment: | ||
needs: [lint] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: pnpm | ||
- run: pnpm i | ||
- run: pnpm build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: build/ | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
library-deployment: | ||
needs: [lint] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
repo: | ||
- 'solvedac/api.ts' | ||
- 'solvedac/api.rs' | ||
steps: | ||
- name: Invoke Workflow | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: Follow Up | ||
token: ${{ secrets.WORKFLOW_DISPATCH }} | ||
repo: ${{ matrix.repo }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,18 +13,26 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: pnpm | ||
- run: pnpm i | ||
- run: pnpm build | ||
- uses: stoplightio/[email protected] | ||
with: | ||
file_glob: "src/*.yaml" | ||
file_glob: 'tsp-output/*.yaml' | ||
library-deployment: | ||
needs: [lint] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' | ||
strategy: | ||
matrix: | ||
repo: | ||
- "solvedac/api.ts" | ||
- "solvedac/api.rs" | ||
- 'solvedac/api.ts' | ||
- 'solvedac/api.rs' | ||
steps: | ||
- name: Invoke Workflow | ||
uses: benc-uk/workflow-dispatch@v1 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
tsp-output/ | ||
build/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Temp | ||
src/**/*.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"singleQuote": true, | ||
"plugins": ["@typespec/prettier-plugin-typespec"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"recommendations": ["redhat.vscode-yaml", "42crunch.vscode-openapi"] | ||
"recommendations": [ | ||
"redhat.vscode-yaml", | ||
"42crunch.vscode-openapi", | ||
"typespec.typespec-vscode" | ||
] | ||
} |
Oops, something went wrong.