aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/reddit.yml
blob: 6aad73e18ac780a48cf2fffcdfe1f45bfdfc771e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Release

on:
  release:
    types: [published]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Release for Reddit
        uses: bluwy/release-for-reddit-action@v1.2.0
        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 }}"
          # 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