From: Marcel van der Veldt Date: Fri, 25 Oct 2024 01:09:48 +0000 (+0200) Subject: Chore: Separate CI a bit for dev/beta and stable X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=57bd9817ee12e1837ae63b8d7c2a7dbc89582686;p=music-assistant-server.git Chore: Separate CI a bit for dev/beta and stable --- diff --git a/.github/workflows/pr-labels.yaml b/.github/workflows/pr-labels.yaml index 102d4c75..286a7c7a 100644 --- a/.github/workflows/pr-labels.yaml +++ b/.github/workflows/pr-labels.yaml @@ -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 index 00000000..8b173b29 --- /dev/null +++ b/.github/workflows/release-drafter-dev.yml @@ -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 index 00000000..1c49f2ae --- /dev/null +++ b/.github/workflows/release-drafter-stable.yml @@ -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 index 18e52677..00000000 --- a/.github/workflows/release-drafter.yml +++ /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 }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e61c81be..37241d84 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,9 +5,13 @@ name: Test on: push: - branches: [main] + branches: + - stable + - dev pull_request: - branches: [main] + branches: + - stable + - dev jobs: lint: