From 5688c63eeb72bf2cb7171532e6649791177e769f Mon Sep 17 00:00:00 2001 From: Pirmin Kalberer Date: Mon, 20 Sep 2021 16:35:35 +0200 Subject: [PATCH] Add GH pages deployment --- .github/workflows/gh-pages.yml | 32 +++++++++++++++++++++++++ content/authentication/qwc-db-auth.md | 2 +- content/authentication/qwc-ldap-auth.md | 2 +- content/services/qwc-print-service.md | 5 ---- 4 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000..2509a584 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,32 @@ +name: github pages + +on: + push: + branches: + - main + pull_request: + +jobs: + deploy: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: true + fetch-depth: 0 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.68.3' + # extended: true + + - name: Build + run: hugo --minify + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public diff --git a/content/authentication/qwc-db-auth.md b/content/authentication/qwc-db-auth.md index 733f8883..f0e416e7 100644 --- a/content/authentication/qwc-db-auth.md +++ b/content/authentication/qwc-db-auth.md @@ -1,5 +1,5 @@ +++ -title = "DB authentication service" +title = "DB Authentication Service" menuTitle = "qwc-db-auth" weight = 1 +++ diff --git a/content/authentication/qwc-ldap-auth.md b/content/authentication/qwc-ldap-auth.md index ae400242..bde34bf7 100644 --- a/content/authentication/qwc-ldap-auth.md +++ b/content/authentication/qwc-ldap-auth.md @@ -1,5 +1,5 @@ +++ -title = "LDAP authentication service" +title = "LDAP Authentication Service" menuTitle = "qwc-ldap-auth" weight = 2 +++ diff --git a/content/services/qwc-print-service.md b/content/services/qwc-print-service.md index d95ac37f..e2e7f2c1 100644 --- a/content/services/qwc-print-service.md +++ b/content/services/qwc-print-service.md @@ -5,11 +5,6 @@ weight = 7 +++ -API documentation: - - http://localhost:5019/api/ - - Configuration -------------