From 817d7a0a4a18014acd83f19c5d96637ff99558b7 Mon Sep 17 00:00:00 2001 From: Szymon Uglis Date: Thu, 24 Oct 2024 23:28:17 +0200 Subject: [PATCH] Change release workflow --- .github/workflows/deploy_docs.yml | 1 - .github/workflows/integration_tests.yml | 2 +- .github/workflows/publish.yml | 25 +++---------------------- .github/workflows/unit_tests.yml | 2 +- 4 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 551eb65cc..6d935f980 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -3,7 +3,6 @@ name: Deploy dev docs to nyxx.l7ssha.xyz on: push: branches: - - dev - next jobs: diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index ff403e9e8..d54d5e44f 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -3,7 +3,7 @@ name: Integration tests on: push: branches: - - dev + - main - next pull_request: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9573a04b2..17ba34f23 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,9 @@ name: Publish nyxx to pub.dev on: - push: - branches: - - main + release: + types: + - created jobs: nyxx_publish: @@ -28,22 +28,3 @@ jobs: force: true suppressBuildRunner: true credentialJson: ${{ secrets.CREDENTIAL_JSON }} - - - name: 'Commit release tag' - if: steps.publish.outputs.success - uses: hole19/git-tag-action@master - env: - TAG: ${{steps.publish.outputs.package}}-${{steps.publish.outputs.localVersion}} - GITHUB_TOKEN: ${{ secrets.TAG_RELEASE_TOKEN }} - - - name: 'Create Release' - if: steps.publish.outputs.success - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.TAG_RELEASE_TOKEN }} - with: - tag_name: ${{steps.publish.outputs.package}}-${{steps.publish.outputs.localVersion}} - release_name: ${{steps.publish.outputs.localVersion}} - body: See CHANGELOG.md for the changes in this version. - draft: false - prerelease: false diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index d44906192..9eabb1cd9 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -3,7 +3,7 @@ name: Run unit tests on: push: branches: - - dev + - main - next pull_request: