diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..58c14f333 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + labels: + - "CI/CD" + commit-message: + prefix: ci diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 87220b16b..6b5600a19 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,14 +2,29 @@ name: fastn build to update vh_pages branch on: push: - branches: [ main ] + branches: + - main + pull_request: + branches: + - main workflow_dispatch: jobs: fastn-build: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Install fastn run: source <(curl -fsSL https://fastn.com/install.sh) - - name: Build the pages with fastn - run: fastn build + - name: Build pages with fastn + run: fastn build --offline + - name: Deploy to vh_page branch + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./.build + publish_branch: vh_page + force_orphan: false + full_commit_message: ${{ github.event.pull_request.head.sha }}