diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..a28e80f62a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +# Runs on releases + +name: Publish release notes +on: + release: + types: [ published ] + +jobs: + + stable: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0 + - name: Version Check + run: | + pip install requests + python3 ci/version_check.py + - name: Push to Stable Branch + uses: ad-m/github-push-action@4dcce6dea3e3c8187237fc86b7dfdc93e5aaae58 # pin@master + if: env.stable_release == 'true' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: stable + force: true diff --git a/.github/workflows/release.yml.disabled b/.github/workflows/social.yml.disabled similarity index 70% rename from .github/workflows/release.yml.disabled rename to .github/workflows/social.yml.disabled index 630564b32d..da233b1212 100644 --- a/.github/workflows/release.yml.disabled +++ b/.github/workflows/social.yml.disabled @@ -7,23 +7,6 @@ on: jobs: - stable: - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0 - - name: Version Check - run: | - pip install requests - python3 ci/version_check.py - - name: Push to Stable Branch - uses: ad-m/github-push-action@4dcce6dea3e3c8187237fc86b7dfdc93e5aaae58 # pin@master - if: env.stable_release == 'true' - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: stable - force: true - tweet: runs-on: ubuntu-latest steps: