From 42d04ec83ba98820c381b79c1d5aeffa4007ce06 Mon Sep 17 00:00:00 2001 From: Saltssaumure Date: Fri, 24 Mar 2023 02:56:59 +0000 Subject: [PATCH] Add replugged workflow --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b669bc2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Release + +on: + push: + tags: + - "v*" + +jobs: + release: + name: Release + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - uses: pnpm/action-setup@v2 + with: + version: latest + + - name: Install Node.js dependencies + run: pnpm install + + - name: Build TypeScript and bundle into asar + run: pnpm run bundle + + - uses: ncipollo/release-action@v1 + with: + artifacts: "bundle/*" + makeLatest: true