Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gh pages on release #413

Merged
merged 9 commits into from Aug 15, 2019

Conversation

@tsiq-karold
Copy link
Collaborator

commented Aug 14, 2019

Adding a number of things to make this happen:

  1. turning on znai plugin to build and export docs
  2. script for updating gh-pages
  3. trigger this script from any tag build
  4. unrelated to this overall change - minor cleanup to the webtau-junit5-examples pom following feedback in #401

I tested the new script locally without doing a commit and push and got the following output from a git status in that dir:

~/OSSDev/webtau/gh-pages[gh-pages !x+]$ git status
On branch gh-pages
Your branch is up to date with 'origin/gh-pages'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   guide/REST/CRUD-separated/index.html
        modified:   guide/REST/CRUD/index.html
        modified:   guide/REST/JSON-schema/index.html
        modified:   guide/REST/PDF/index.html
        modified:   guide/REST/complex-types/index.html
        modified:   guide/REST/data-node/index.html
        modified:   guide/REST/documentation/index.html
        modified:   guide/REST/files-upload/index.html
        modified:   guide/REST/getting-started/index.html
        modified:   guide/REST/headers/index.html
        modified:   guide/REST/matchers/index.html
        modified:   guide/REST/maven/index.html
        modified:   guide/REST/openAPI-spec/index.html
        modified:   guide/REST/query-parameters/index.html
        modified:   guide/REST/report/index.html
        modified:   guide/REST/test-execution/index.html
        modified:   guide/UI/advanced-configuration/index.html
        modified:   guide/UI/asynchronous-page/index.html
        modified:   guide/UI/basic-configuration/index.html
        new file:   guide/UI/documentation/index.html
        modified:   guide/UI/finders-and-filters/index.html
        modified:   guide/UI/forms/index.html
        modified:   guide/UI/getting-started/index.html
        modified:   guide/UI/local-storage/index.html
        modified:   guide/UI/matchers/index.html
        modified:   guide/UI/navigation/index.html
        modified:   guide/UI/page-element-and-value/index.html
        modified:   guide/UI/page-object/index.html
        modified:   guide/UI/page-open-handlers/index.html
        modified:   guide/all-pages.json
        new file:   guide/assets.js
        modified:   guide/configuration/cli/index.html
        modified:   guide/configuration/environments/index.html
        modified:   guide/configuration/options/index.html
        new file:   guide/doc-artifacts/reports/report-crud-http-calls.png
        new file:   guide/doc-artifacts/reports/report-crud-separated-http-calls.png
        new file:   guide/doc-artifacts/reports/report-summary.png
        new file:   guide/doc-artifacts/reports/report-test-summary.png
        new file:   guide/doc-artifacts/ui/search-highlight-cover.png
        new file:   guide/doc-artifacts/ui/search.png
        modified:   guide/generic-runners/JUnit-4/index.html
        modified:   guide/generic-runners/JUnit-5/index.html
        deleted:    guide/groovy-specific-runner/conditional-run/index.html
        modified:   guide/groovy-specific-runner/data-driven-scenarios/index.html
        modified:   guide/groovy-specific-runner/selective-run/index.html
        modified:   guide/groovy-specific-runner/skipping-tests/index.html
        modified:   guide/groovy-specific-runner/tests-hard-stops/index.html
        deleted:    guide/img/rest-crud-separated-report.png
        deleted:    guide/img/rest-report-http-calls.png
        deleted:    guide/img/rest-report-summary.png
        modified:   guide/index.html
        modified:   guide/logo.css
        modified:   guide/reference/table-data/index.html
        deleted:    guide/report-test-summary.png
        modified:   guide/search-entries.xml
        modified:   guide/search-index.js
        modified:   guide/static/css/katex.min.css
        modified:   guide/static/fonts/KaTeX_Main-Bold.ttf
        modified:   guide/static/fonts/KaTeX_Main-Bold.woff
        modified:   guide/static/fonts/KaTeX_Main-Bold.woff2
        modified:   guide/static/fonts/KaTeX_Main-BoldItalic.ttf
        modified:   guide/static/fonts/KaTeX_Main-BoldItalic.woff
        modified:   guide/static/fonts/KaTeX_Main-BoldItalic.woff2
        modified:   guide/static/fonts/KaTeX_Main-Italic.ttf
        modified:   guide/static/fonts/KaTeX_Main-Italic.woff
        modified:   guide/static/fonts/KaTeX_Main-Italic.woff2
        modified:   guide/static/fonts/KaTeX_Main-Regular.ttf
        modified:   guide/static/fonts/KaTeX_Main-Regular.woff
        modified:   guide/static/fonts/KaTeX_Main-Regular.woff2
        modified:   guide/static/fonts/KaTeX_Math-BoldItalic.ttf
        modified:   guide/static/fonts/KaTeX_Math-BoldItalic.woff
        modified:   guide/static/fonts/KaTeX_Math-BoldItalic.woff2
        modified:   guide/static/fonts/KaTeX_Math-Italic.ttf
        modified:   guide/static/fonts/KaTeX_Math-Italic.woff
        modified:   guide/static/fonts/KaTeX_Math-Italic.woff2
        modified:   guide/static/main.css
        modified:   guide/static/main.js
        modified:   guide/static/react-dom.min.js
        modified:   guide/static/react.min.js
        modified:   guide/toc.js
        deleted:    znaisrc/REST/minimal-groovy-setup.md
        modified:   znaisrc/_artifacts/doc-artifacts/cfg/cli-args.json
        modified:   znaisrc/_artifacts/doc-artifacts/list-match/response.json
        modified:   znaisrc/_artifacts/doc-artifacts/ui/search-highlight-cover.png
        modified:   znaisrc/_artifacts/doc-artifacts/ui/search.png
        modified:   znaisrc/_artifacts/doc-artifacts/url-capture/request.fullurl.txt
        modified:   znaisrc/_artifacts/installation-groovy-runner.md
        modified:   znaisrc/_artifacts/maven/groovy-dep.xml
        modified:   znaisrc/_artifacts/maven/java-dep.xml
        modified:   znaisrc/_artifacts/maven/junit4-dep.xml
        modified:   znaisrc/_artifacts/maven/junit5-dep.xml
        modified:   znaisrc/_artifacts/maven/plugin-discover.xml
        modified:   znaisrc/_artifacts/maven/plugin-list.xml
        modified:   znaisrc/_artifacts/maven/plugin-wildcard.xml

This shows it picked up changes, new files and deletions.

@tsiq-karold tsiq-karold requested a review from MykolaGolubyev Aug 14, 2019

@MykolaGolubyev
Copy link
Collaborator

left a comment

This is awesome!

GH_PAGES_DIR=$ROOT_DIR/gh-pages

# Find the webtau version
WEBTAU_VERSION=$(grep \<version\> $ROOT_DIR/pom.xml | head -1 | cut -d'>' -f2 | cut -d'<' -f1)

This comment has been minimized.

Copy link
@MykolaGolubyev

MykolaGolubyev Aug 14, 2019

Collaborator

alternative could be to use maven resource process to substitute version.

cleanup() {
rm -rf $GH_PAGES_DIR
}
trap cleanup EXIT

This comment has been minimized.

Copy link
@tsiq-clemens

tsiq-clemens Aug 14, 2019

Collaborator

nice one, rarely seen in bash

tsiq-karold added 5 commits Aug 15, 2019

@tsiq-karold tsiq-karold merged commit a22f0be into master Aug 15, 2019

2 checks passed

Travis CI - Pull Request Build Passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@tsiq-karold tsiq-karold deleted the update-gh-pages branch Aug 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.