From 4f78e312773fbcf3b1dfcf2c67b83b50b2361113 Mon Sep 17 00:00:00 2001 From: MarvinF Date: Mon, 9 Jun 2025 16:40:12 +0200 Subject: [PATCH 1/3] Create build_snapshot.yml --- .github/workflows/build_snapshot.yml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build_snapshot.yml diff --git a/.github/workflows/build_snapshot.yml b/.github/workflows/build_snapshot.yml new file mode 100644 index 0000000..b216ce5 --- /dev/null +++ b/.github/workflows/build_snapshot.yml @@ -0,0 +1,39 @@ +# 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: Release + +on: + push: + tags: + - 'snapshot' # run only on version tag snapshot + # - 'v*' # 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-stage + + - 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: + prerelease: true + name: SNAPSHOT + files: package/packages/com_sportsmanager.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 6ae7388a446b7cc9237540ddfbc52d70ca40e9d6 Mon Sep 17 00:00:00 2001 From: MarvinF Date: Mon, 9 Jun 2025 16:40:49 +0200 Subject: [PATCH 2/3] Update build_snapshot.yml --- .github/workflows/build_snapshot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_snapshot.yml b/.github/workflows/build_snapshot.yml index b216ce5..d700ad5 100644 --- a/.github/workflows/build_snapshot.yml +++ b/.github/workflows/build_snapshot.yml @@ -1,7 +1,7 @@ # 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: Release +name: Snapshot Release on: push: From 984156ca95e89631972b8095ba4a5598c9c489b8 Mon Sep 17 00:00:00 2001 From: MarvinF Date: Mon, 9 Jun 2025 16:48:13 +0200 Subject: [PATCH 3/3] Update build_snapshot.yml --- .github/workflows/build_snapshot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_snapshot.yml b/.github/workflows/build_snapshot.yml index d700ad5..7ed9bd0 100644 --- a/.github/workflows/build_snapshot.yml +++ b/.github/workflows/build_snapshot.yml @@ -6,7 +6,7 @@ name: Snapshot Release on: push: tags: - - 'snapshot' # run only on version tag snapshot + - 'v*-snapshot' # run only on version tags like v1.0.0-snapshot # - 'v*' # Run only on version tags like v1.0.0 jobs: build: