diff --git a/.github/tweet.md b/.github/tweet.md deleted file mode 100755 index b2e8693f..00000000 --- a/.github/tweet.md +++ /dev/null @@ -1,2 +0,0 @@ -🎉 New release: **v25.7.3 - 🌍 Arabic translation and various fixes** is live! 🚀 -Check it out here: https://github.com/jokob-sk/NetAlertX/releases/tag/v25.7.3 diff --git a/.github/workflows/social_post_on_release.yml b/.github/workflows/social_post_on_release.yml index b68abcd5..cf559ee3 100755 --- a/.github/workflows/social_post_on_release.yml +++ b/.github/workflows/social_post_on_release.yml @@ -1,4 +1,4 @@ -name: 📧 Twitter and Discord Posts +name: 📧 Social Posts on: release: types: [published] @@ -16,38 +16,3 @@ jobs: -d '{"content": "🎉 New release: **${{ github.event.release.name }}** is live! 🚀\nCheck it out here: ${{ github.event.release.html_url }}"}' \ ${{ secrets.DISCORD_WEBHOOK_URL }} - post-twitter: - runs-on: ubuntu-latest - steps: - - name: Wait for 15 minutes - run: sleep 900 # 15 minutes delay - - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set Git config - run: | - git config --global user.email "github-actions@github.com" - git config --global user.name "GitHub Actions" - - - name: Create tweet file - run: | - echo "🎉 New release: **${{ github.event.release.name }}** is live! 🚀" > .github/tweet.md - echo "Check it out here: ${{ github.event.release.html_url }}" >> .github/tweet.md - git add .github/tweet.md - git commit -m "Add release tweet for ${{ github.event.release.name }}" - - - name: Push changes - run: | - git push https://github.com/${{ github.repository }}.git HEAD:main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Tweet - uses: twitter-together/action@v3 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} - TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} - TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }} - TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_API_SECRET_KEY }}