From ae0f717917d1b7220c4a4bb0abe6afdef38545ec Mon Sep 17 00:00:00 2001 From: Zhell <50169243+krbz999@users.noreply.github.com> Date: Tue, 25 Jul 2023 12:09:29 +0200 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7559c52 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Release Creation + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # Create zip file + - run: zip -r ./module.zip setup.js module.json LICENSE scripts/ lang/ styles/ templates/ + + # Create a release for this specific version. + - name: Update Release with Files + if: "!github.event.release.prerelease" + id: create_version_release + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + name: ${{ github.event.release.name }} + draft: false + prerelease: false + token: ${{ secrets.GITHUB_TOKEN }} + artifacts: "./module.json, ./module.zip" + tag: ${{ github.event.release.tag_name }} + body: ${{ github.event.release.body }}