From 59e1a4571ba1fbaa049eb9f84a70cfc11ebde680 Mon Sep 17 00:00:00 2001 From: MarvinF Date: Tue, 24 Jun 2025 19:29:17 +0200 Subject: [PATCH] Create prod release pipeline --- .github/workflows/build_release.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build_release.yml diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml new file mode 100644 index 0000000..f85c92a --- /dev/null +++ b/.github/workflows/build_release.yml @@ -0,0 +1,37 @@ +# This workflow will run release using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Sportsmanager Release + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' # run only on version tags like v1.0.0 +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: sportsmanager2-prod + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install npm dependencies + run: npm ci + + - name: Run build script + run: npm run release + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + name: RELEASE + files: package/packages/com_sportsmanager.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}