From d2ade7331ecf75bb2dac35c683d93e262f792244 Mon Sep 17 00:00:00 2001 From: proudparrot2 Date: Tue, 9 Jan 2024 11:25:49 -0600 Subject: [PATCH] Test github build action --- .github/workflows/build.yaml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..b482eae --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,39 @@ +name: Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + + - name: Install dependencies + uses: bahmutov/npm-install@v1 + + - name: Install Dependencies + run: | + npm install + + - name: Build + run: | + npm run build + + - name: Push to build branch + run: | + git checkout -b build + git add -f .dist + git commit -m "Build" + git push origin build + + - name: Clean up + run: | + git checkout main