diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 8411f8d..c3db158 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -2,7 +2,7 @@ name: Deploy Docs on: push: - branches: [main] + branches: [main, development] permissions: contents: read @@ -52,13 +52,21 @@ jobs: path: apps/docs/.vitepress/dist deploy: + name: Deploy + needs: build + runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - needs: build - runs-on: ubuntu-latest - name: Deploy + steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + with: + # If on development branch, deploy as preview + preview: ${{ github.ref == 'refs/heads/development' }} + + - name: Show deployed URL + run: | + echo "Deployed URL: ${{ steps.deployment.outputs.page_url }}"