From 50a16e9db9511ff49b7dfd17fdb4c8f907719ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Gro=C3=9Fberndt?= Date: Wed, 14 Dec 2022 10:41:38 +0100 Subject: [PATCH] Migrate deployment of documentation tables to GitHub Action https://vdvde.github.io/OJP/generated/OJP.html can now be found at https://vdvde.github.io/OJP/index.html instead --- .github/workflows/deploy-pages.yml | 38 ++++++++++++++++++++++++++++++ README.md | 2 +- docs/generate-tables.sh | 2 +- 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy-pages.yml diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml new file mode 100644 index 000000000..0c33e492a --- /dev/null +++ b/.github/workflows/deploy-pages.yml @@ -0,0 +1,38 @@ +name: Deploy documentation tables to GitHub Pages + +on: + push: + branches: ["changes_for_v1.1"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Pages + uses: actions/configure-pages@v2 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: './docs/generated' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/README.md b/README.md index 6cf308dca..5ca056b65 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ at [CEN](https://www.cen.eu). ## Repository -Download the XSD schema files and examples in the git repository found at https://github.com/VDVde/OJP and take a look at the [documentation tables](https://vdvde.github.io/OJP/generated/OJP.html). +Download the XSD schema files and examples in the git repository found at https://github.com/VDVde/OJP and take a look at the [documentation tables](https://vdvde.github.io/OJP/OJP.html). ## Regulatory environment of OJP diff --git a/docs/generate-tables.sh b/docs/generate-tables.sh index cdf5f3e1c..3216c536e 100755 --- a/docs/generate-tables.sh +++ b/docs/generate-tables.sh @@ -26,6 +26,6 @@ xsltproc --xinclude "${xsl_dir}"/ojp-to-prepdoc.xsl \ # generate stand-alone HTML file for documentation xsltproc --xinclude "${xsl_dir}"/ojp-prep-to-html-with-toc.xsl \ "${generated_dir}"/OJP-prep.xml \ - >> "${generated_dir}"/OJP.html + >> "${generated_dir}"/index.html echo -e '\033[0;32mFinished generating documentation tables\033[0m'