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

on:
  release:
    types: [released]

jobs:
  test:
    runs-on: ubuntu-22.04
    steps:
      - name: Release for Reddit
        uses: bluwy/release-for-reddit-action@v2
        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
          title: '[Release] Ferdium ${{ github.event.release.tag_name }}'
          # flair-id: "7aa4f288-bf0d-11ec-a939-8e36666e1f23"
          comment: '${{ github.event.release.body }}'
          notification: true