From 215836483b2b2c25bbe7d1e1f389727113c509a3 Mon Sep 17 00:00:00 2001 From: Lost Paul <70213368+LostPaul@users.noreply.github.com> Date: Tue, 19 Mar 2024 22:40:47 +0100 Subject: [PATCH] Create release.yaml --- .github/workflows/release.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..1e4c1fa --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,21 @@ +# https://github.com/SilentVoid13/Templater/blob/master/.github/workflows/release.yml +name: Plugin release +on: + push: + tags: + - "[0-9]+.[0-9]+.[0-9]+" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: npm build + run: | + npm install + npm run build --if-present + - name: Plugin release + uses: ncipollo/release-action@v1.12.0 + with: + artifacts: "main.js,manifest.json,styles.css" + token: ${{ secrets.GITHUB_TOKEN }}