From 8245e20f3fec85ef33dd88e0cb48a32953a3874b Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:01:49 +0100 Subject: Create GH Action for automatic publish of releases (#292) --- .github/workflows/reddit.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/reddit.yml diff --git a/.github/workflows/reddit.yml b/.github/workflows/reddit.yml new file mode 100644 index 000000000..8cb5eb99b --- /dev/null +++ b/.github/workflows/reddit.yml @@ -0,0 +1,23 @@ +name: Release + +on: + release: + types: [published] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: bluwy/release-for-reddit-action@v1 + with: + username: ${{ secrets.REDDIT_USERNAME }} + password: ${{ secrets.REDDIT_PASSWORD }} + app-id: ${{ secrets.REDDIT_APP_ID }} + app-secret: ${{ secrets.REDDIT_APP_SECRET }} + #subreddit: ferdium # Submit to /r/ferdium # uncomment this after testing on a dummy subreddit when moving to the main one + subreddit: ferdiumtests # Submit to /r/ferdiumtests # Delete this line after testing on dummy repository + title: [Release] Ferdium ${{ github.event.release.tag_name }} + url: ${{ github.event.release.html_url }} + # flair-id: 7aa4f288-bf0d-11ec-a939-8e36666e1f23 # uncomment this after testing on a dummy subreddit when moving to the main one + comment: ${{ github.event.release.body }} + notification: true \ No newline at end of file -- cgit v1.2.3-54-g00ecf