From 5d53d3db5641b9d6ac2a22e6f9f2edde76f1d2fa Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:50:27 +1300 Subject: [PATCH] Add a build workflow --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 000000000..0c2b4eecd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build and push to build branch. + +on: + push: + branches: [build-test] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + with: + ref: trunk + + - name: Setup + uses: WordPress/wporg-repo-tools/.github/actions/setup@trunk + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Add all the files + run: | + git add * --force + + - name: Commit and push + uses: actions-js/push@a52398fac807b0c1e5f1492c969b477c8560a0ba # 1.3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: build + force: true + message: 'Build: ${{ github.sha }}'