diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 5f2779c..b7f300c 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -9,6 +9,8 @@ name: on_release Publish to Pypi on: + branches: + - main release: types: [published] diff --git a/.github/workflows/rpm-build.yml b/.github/workflows/rpm-build.yml index 399c268..c8dc9a0 100644 --- a/.github/workflows/rpm-build.yml +++ b/.github/workflows/rpm-build.yml @@ -1,8 +1,10 @@ on: push: - # Sequence of patterns matched against refs/tags - tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + branches: + - main + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 name: on_push Create RPM Release @@ -16,21 +18,21 @@ jobs: - name: Checkout code uses: actions/checkout@master - - name: Create Release - id: create_release - uses: actions/create-release@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: | - Changes in this Release - - Create RPM - - Upload Source RPM - draft: false - prerelease: false - allowUpdates: true + #- name: Create Release + # id: create_release + # uses: actions/create-release@latest + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + # with: + # tag_name: ${{ github.ref }} + # release_name: Release ${{ github.ref }} + # body: | + # Changes in this Release + # - Create RPM + # - Upload Source RPM + # draft: false + # prerelease: false + # allowUpdates: true - name: build RPM package id: rpm_build