diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..cff2c66 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,51 @@ +name: GH Pages +on: + push: + branches: + - master + paths: + - docs/** +jobs: + build: + runs-on: ubuntu-latest + + defaults: + run: + shell: bash + working-directory: docs + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node environment + uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' + + - run: npm install + + - run: npm run build + + - uses: actions/upload-artifact@v2 + with: + name: build + path: docs/public + + deploy: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v2 + with: + name: build + + - name: Deploy to GitHub Pages + uses: crazy-max/ghaction-github-pages@v2 + with: + target_branch: gh-pages + build_dir: . + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + \ No newline at end of file diff --git a/docs/public/index.html b/docs/public/index.html index f3766fa..a2c645b 100644 --- a/docs/public/index.html +++ b/docs/public/index.html @@ -6,8 +6,8 @@ Servicepos Printdesk - - + +