Skip to content

Commit

Permalink
add pages deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
CubicrootXYZ committed Oct 13, 2024
1 parent f4e9cfc commit 59264c0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/openapi2_render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: rendered-api-docu
path: |
index.html
- name: Upload HTML file as pages artifact
id: openapi-html
uses: actions/upload-pages-artifact@v3
with:
path: |
index.html
27 changes: 27 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
workflow_call:
inputs:
spec_artifact_name:
required: true
type: string
spec_artifact_path:
required: true
type: string

jobs:
deploy:
runs-on: ubuntu-latest
if: "${{ github.ref == 'refs/heads/main' }}"
steps:
- uses: actions/download-artifact@master
with:
name: ${{ inputs.spec_artifact_name }}
path: ${{ inputs.spec_artifact_path }}
- name: Upload HTML file as pages artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ${{ inputs.spec_artifact_path }}
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 59264c0

Please sign in to comment.