name: ocelot.social deploy documentation on: push: branches: - master jobs: files-changed: name: Detect File Changes - Markdown and Vuepress files runs-on: ubuntu-latest outputs: documentation: ${{ steps.changes.outputs.documentation }} steps: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Check for file changes uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 id: changes with: token: ${{ github.token }} filters: .github/file-filters.yml list-files: shell build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Node 20 uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 with: node-version: 20 - name: Build Vuepress Pages run: npm install && npm run docs:build - name: Deploy Vuepress to Github Pages uses: crazy-max/ghaction-github-pages@1d6ee9b181a81033a16bd707a1401afa978daab4 # v4.0.0 with: target_branch: gh-pages build_dir: .vuepress/dist author: Wolfgang Huß fqdn: docs.ocelot.social env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}