From f8f7b28268712cef74b227e8ac681fc210ddae3e Mon Sep 17 00:00:00 2001 From: tinaxd <31384595+tinaxd@users.noreply.github.com> Date: Fri, 23 Jun 2023 16:28:07 +0900 Subject: [PATCH 1/2] github actions setup --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..5d30256 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: build + +on: + push: + branches: ["github-ci"] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v2 + - name: Using Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Installing dependencies + run: npm ci + - name: Building releases + run: npm run build:all + env: + NODE_ENV: production + - name: Collecting release builds + uses: actions/upload-artifact@v2 + with: + name: releases + path: dist/release/*.zip From e23b156a729fd78a4ffd789be2085265f2f32ade Mon Sep 17 00:00:00 2001 From: tinaxd <31384595+tinaxd@users.noreply.github.com> Date: Fri, 23 Jun 2023 16:32:21 +0900 Subject: [PATCH 2/2] automatic build --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d30256..588625c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,8 @@ name: build on: push: - branches: ["github-ci"] + tags: + - v* jobs: build: