Chore: Separate CI a bit for dev/beta and stable
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 25 Oct 2024 01:09:48 +0000 (03:09 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 25 Oct 2024 01:09:48 +0000 (03:09 +0200)
.github/workflows/pr-labels.yaml
.github/workflows/release-drafter-dev.yml [new file with mode: 0644]
.github/workflows/release-drafter-stable.yml [new file with mode: 0644]
.github/workflows/release-drafter.yml [deleted file]
.github/workflows/test.yml

index 102d4c756f5fbb7e8bd710541b03cadcb233eb5f..286a7c7a3b2f964c92f850f4d991b4486d387760 100644 (file)
@@ -9,7 +9,7 @@ on:
       - labeled
       - unlabeled
     branches:
-      - main
+      - stable
 
 jobs:
   pr_labels:
diff --git a/.github/workflows/release-drafter-dev.yml b/.github/workflows/release-drafter-dev.yml
new file mode 100644 (file)
index 0000000..8b173b2
--- /dev/null
@@ -0,0 +1,28 @@
+name: Release Drafter
+
+on:
+  push:
+    branches:
+      - dev
+
+permissions:
+  contents: write
+  pull-requests: write
+
+jobs:
+  release-please:
+    runs-on: ubuntu-latest
+    outputs:
+      version: ${{ steps.release.outputs.tag_name }}
+      release_created: ${{ steps.release.outputs.release_created }}
+    steps:
+      - uses: googleapis/release-please-action@v4
+        id: release
+        with:
+          # this assumes that you have created a personal access token
+          # (PAT) and configured it as a GitHub action secret named
+          # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
+          token: ${{ secrets.GITHUB_TOKEN }}
+          # this is a built-in strategy in release-please, see "Action Inputs"
+          # for more options
+          release-type: simple
diff --git a/.github/workflows/release-drafter-stable.yml b/.github/workflows/release-drafter-stable.yml
new file mode 100644 (file)
index 0000000..1c49f2a
--- /dev/null
@@ -0,0 +1,15 @@
+name: Release Drafter
+
+on:
+  push:
+    branches:
+      - stable
+
+jobs:
+  update_release_draft:
+    runs-on: ubuntu-latest
+    steps:
+      # Drafts your next Release notes as Pull Requests are merged into "master"
+      - uses: release-drafter/release-drafter@v6.0.0
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
deleted file mode 100644 (file)
index 18e5267..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-name: Release Drafter
-
-on:
-  push:
-    branches:
-      - main
-
-jobs:
-  update_release_draft:
-    runs-on: ubuntu-latest
-    steps:
-      # Drafts your next Release notes as Pull Requests are merged into "master"
-      - uses: release-drafter/release-drafter@v6.0.0
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
index e61c81be67628a012c888e659a3693352526afb3..37241d84d2e4711da6a136d81e92ebd115be40bb 100644 (file)
@@ -5,9 +5,13 @@ name: Test
 
 on:
   push:
-    branches: [main]
+    branches:
+      - stable
+      - dev
   pull_request:
-    branches: [main]
+    branches:
+      - stable
+      - dev
 
 jobs:
   lint: