Skip to content

Commit

Permalink
fix: generate readme.md for helm from readme.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
eshepelyuk committed Mar 11, 2021
1 parent 359bac2 commit 4e2e4c6
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 240 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- run: |
gem install asciidoctor
- name: nodejs 12
uses: actions/setup-node@v1
with:
Expand All @@ -40,6 +45,13 @@ jobs:
cat /tmp/cmak.version
echo "::set-output name=cmakVersion::$(cat /tmp/cmak.version)"
- uses: azure/setup-helm@v1
- run: |
asciidoctor -b docbook -a leveloffset=+1 -o README.md.tmp README.adoc
- uses: docker://pandoc/ubuntu-core:2.12
with:
args: --markdown-headings=atx --wrap=preserve -t gfm -f docbook -o README.md README.md.tmp
- run: |
./adoc2md.sh
- run: helm package . --version ${{ steps.cmakVersion.outputs.cmakVersion }}
- name: upload artifact
uses: actions/upload-artifact@v2
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/test.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ package-lock.json
package.json
.idea
values-dev.yaml

README.md
1 change: 1 addition & 0 deletions .helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ venv
skaffold.yaml
values-lint.yaml
node_modules
README.adoc
11 changes: 0 additions & 11 deletions README.md

This file was deleted.

199 changes: 0 additions & 199 deletions README2.md

This file was deleted.

4 changes: 2 additions & 2 deletions adoc2md.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

asciidoctor -b docbook -a leveloffset=+1 -o - README.adoc | pandoc --markdown-headings=atx --wrap=preserve -t gfm -f docbook - > README2.md
# asciidoctor -b docbook -a leveloffset=+1 -o - README.adoc | pandoc --markdown-headings=atx --wrap=preserve -t gfm -f docbook - > README2.md

sed -i 's/^plantuml::arch.puml.*$/![Component diagram](http:\/\/www.plantuml.com\/plantuml\/proxy?cache=no\&src=https:\/\/raw.githubusercontent.com\/eshepelyuk\/cmak-operator\/master\/arch.puml)/g' README2.md
sed -i 's/^plantuml::arch.puml.*$/![Component diagram](http:\/\/www.plantuml.com\/plantuml\/proxy?cache=no\&src=https:\/\/raw.githubusercontent.com\/eshepelyuk\/cmak-operator\/master\/arch.puml)/g' README.md

0 comments on commit 4e2e4c6

Please sign in to comment.