--- trunk/.github/workflows/release.yml 2024/09/07 14:55:53 629 +++ trunk/.github/workflows/release.yml 2024/09/07 14:57:22 630 @@ -1,4 +1,5 @@ name: Releases + on: push: branches: @@ -6,10 +7,11 @@ permissions: contents: write + deployments: write jobs: build: - if: github.repository_owner == 'onesoft-sudo' + if: github.repository_owner == 'onesoft-sudo' && github.ref == 'refs/heads/main' strategy: matrix: @@ -68,7 +70,7 @@ release: needs: [build] - if: github.repository_owner == 'onesoft-sudo' + if: github.repository_owner == 'onesoft-sudo' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: