Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
86e05a42
Unverified
Commit
86e05a42
authored
Jul 06, 2021
by
acud
Committed by
GitHub
Jul 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: auto build openapi spec (#2289)
parent
a1cb4f0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
docs.yaml
.github/workflows/docs.yaml
+49
-0
README.md
README.md
+2
-0
No files found.
.github/workflows/docs.yaml
0 → 100644
View file @
86e05a42
name
:
OpenAPI
on
:
push
:
branches
:
-
'
master'
pull_request
:
branches
:
-
'
**'
jobs
:
build
:
name
:
Preview
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
with
:
fetch-depth
:
'
0'
-
name
:
Check whether docs have changed
id
:
checkdocs
run
:
|
changed=false
git diff --name-only HEAD^ HEAD > files.txt
while IFS= read -r file
do
if [[ $file == openapi/* ]]; then
echo "detected openapi spec change"
changed=true
fi
done < files.txt
if [ $changed == true ]
then
echo "::set-output name=build_docs::true"
else
echo "::set-output name=build_docs::false"
fi
-
name
:
Build the OpenAPI specs
if
:
steps.checkdocs.outputs.build_docs == 'true'
uses
:
acud/openapi-dockerized@v1
with
:
build-roots
:
'
openapi/Swarm.yaml
openapi/SwarmDebug.yaml'
env
:
AWS_ACCESS_KEY_ID
:
${{ secrets.DO_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY
:
${{ secrets.DO_AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED
:
true
#needed when pushing to DigitalOcean Spaces
AWS_ENDPOINT
:
fra1.digitaloceanspaces.com
BUCKET_NAME
:
openapi-specs
README.md
View file @
86e05a42
...
...
@@ -3,6 +3,8 @@
[

](https://github.com/ethersphere/bee/actions)
[

](https://pkg.go.dev/github.com/ethersphere/bee)
[

](https://coveralls.io/github/ethersphere/bee)
[

](https://docs.ethswarm.org/api/)
[

](https://docs.ethswarm.org/debug-api/)
## DISCLAIMER
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment