From 2c30efd12111183545b6256cb8c2a90b6f1c1196 Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 26 Dec 2023 08:59:56 +0100 Subject: [PATCH] ci: add build --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..568c890 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: [main] + pull_request: + +jobs: + main: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - name: Setup Deno + uses: ./ + + - run: deno run -A ./bundle.ts + + - name: Push changes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + file_pattern: "dist/*" + commit_message: "chore: build action bundle" + commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"