From a8547fbde955264a6f8cb1dd70832c01a4f59327 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Thu, 3 Nov 2022 12:06:20 +0100 Subject: [PATCH] add build-action --- .github/workflows/build-action.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-action.yml diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml new file mode 100644 index 0000000..4598cbe --- /dev/null +++ b/.github/workflows/build-action.yml @@ -0,0 +1,35 @@ +name: Build Action +on: + workflow_dispatch: + inputs: + ref: + description: The branch + type: string + default: main + required: true +jobs: + build: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v3 + with: + ref: ${{ inputs.ref }} + - uses: actions/setup-node@v3 + with: + node-version: '16' + - name: Install dependencies + run: | + npm ci + - name: Build Action + run: | + npm run build + - name: Update dist + run: | + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + git add ./dist && + git commit -m "Update dist" + git push origin HEAD:${{ inputs.ref }}