From ed7bb1c1f0ead8ec7e6bef18a0dce67dc0c7d5e9 Mon Sep 17 00:00:00 2001 From: jayam04 Date: Sun, 28 Jan 2024 11:09:44 +0530 Subject: [PATCH] auto build extension on push on master --- .../workflows/build-and-update-extension.yml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build-and-update-extension.yml diff --git a/.github/workflows/build-and-update-extension.yml b/.github/workflows/build-and-update-extension.yml new file mode 100644 index 0000000..44ea304 --- /dev/null +++ b/.github/workflows/build-and-update-extension.yml @@ -0,0 +1,31 @@ +name: Build and Push + +on: + push: + branches: + - master + +jobs: + build_and_push: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + + - name: Run build script + run: | + scripts/create_build.sh + + - name: Commit and push changes + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + git add -A + git commit -m "Create latest build" + git push