From 009daf2cc89ce3f1c2435ae80f8d332f41df875f Mon Sep 17 00:00:00 2001 From: Totto16 Date: Sat, 22 Feb 2025 18:03:56 +0100 Subject: [PATCH] chore: add release CI, to upload the archive --- .github/workflows/release.yml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 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 00000000..04f7e1fa --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,44 @@ +name: Release CI + +on: + release: + types: published + +env: + node-version: 22.x + +jobs: + release: + name: Release CI + runs-on: ubuntu-24.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.node-version }} + + - name: Install dependencies + run: yarn install -D + + - name: Validate Formatting + run: yarn run prettier:check + + - name: Validate Locale + run: yarn run check:locale + + - name: Lint Extension + run: yarn run lint + + - name: Build an Package Extension + run: | + yarn run build:package + mv dist/pano@elhan.io.zip . + + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: pano@elhan.io.zip