Skip to content

Commit c9f3336

Browse files
sdk html docs as the artifact tar for pages.
1 parent aece7b9 commit c9f3336

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.github/workflows/stage-5-publish.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ jobs:
7272
asset_name: jekyll-docs-${{ inputs.version }}.tar
7373
asset_content_type: "application/gzip"
7474

75+
- name: "Upload sdk html docs release asset"
76+
uses: actions/upload-release-asset@v1
77+
env:
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
with:
80+
upload_url: "${{ steps.create_release.outputs.upload_url }}"
81+
asset_path: ./artifacts/sdk-html-docs-${{ inputs.version }}/artifact.tar
82+
asset_name: sdk-html-docs-${{ inputs.version }}.tar
83+
asset_content_type: "application/gzip"
84+
7585
#- name: "tar gz jekyll docs release asset"
7686
# # Git hub pages needs a single tar called artifact inside the zip.
7787
# working-directory: ./artifacts/jekyll-docs-${{ inputs.version }}

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ clean:: # Clean-up project resources (main) @Operations
2727
serve:
2828
npm run serve
2929

30+
3031
config:: _install-dependencies version # Configure development environment (main) @Configuration
3132
npm install
3233
(cd docs && make install && cd ..)

sdk/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ build: version # Build the project artefact @Pipeline
88
clean: # Clean-up project resources (main) @Operations
99
rm -rf */
1010

11+
swagger:
12+
./swagger.sh
13+
1114
version:
1215
touch _config.version.yml
1316
if [[ $(VERSION) == "" ]]; then \

sdk/swagger.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
docker run -p 80:8080 -e SWAGGER_JSON=/swagger/swagger.json -v ../specification/api/notify-supplier.yml:/swagger/swagger.json docker.swagger.io/swaggerapi/swagger-ui

0 commit comments

Comments
 (0)