From 066f39029fe7aa07d47259c9562c239b6341dca4 Mon Sep 17 00:00:00 2001 From: teomrd Date: Fri, 1 Nov 2024 15:47:02 +0000 Subject: [PATCH] feat(deno): deploy from CI --- .github/workflows/deploy.yml | 20 ++++++++++++++++++++ .github/workflows/on-pull-request.yml | 5 +---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..2eeb95a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Deploy to GitHub Pages +on: + push: + branches: + - main + - deno +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: denoland/setup-deno@v2 + with: + deno-version: v2.x + - run: make build + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index fff6401..244c566 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -1,8 +1,5 @@ name: On Pull Requests on: - push: - branches: - - deno pull_request: branches: - main @@ -10,7 +7,7 @@ jobs: quality-checks: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: denoland/setup-deno@v2 with: deno-version: v2.x