mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
feat: add Reddit release notification
This commit is contained in:
parent
a90a553222
commit
0eb5530422
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -49,3 +49,7 @@ jobs:
|
|||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
|
REDDIT_APP_ID: ${{ secrets.REDDIT_APP_ID }}
|
||||||
|
REDDIT_SECRET: ${{ secrets.REDDIT_SECRET }}
|
||||||
|
REDDIT_USERNAME: ${{ secrets.REDDIT_USERNAME }}
|
||||||
|
REDDIT_PASSWORD: ${{ secrets.REDDIT_PASSWORD }}
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
# Binaries
|
# Binaries
|
||||||
|
.task
|
||||||
no
|
no
|
||||||
.data
|
.data
|
||||||
schemas
|
schemas
|
||||||
|
@ -61,7 +61,7 @@ archives:
|
|||||||
- id: sonr
|
- id: sonr
|
||||||
builds: [sonr]
|
builds: [sonr]
|
||||||
name_template: >-
|
name_template: >-
|
||||||
sonr_{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64
|
sonr_{{ .Os }}_{{- if eq .Arch "amd64" }}x86_64
|
||||||
{{- else if eq .Arch "386" }}i386
|
{{- else if eq .Arch "386" }}i386
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
format: tar.gz
|
format: tar.gz
|
||||||
@ -72,7 +72,7 @@ archives:
|
|||||||
- id: hway
|
- id: hway
|
||||||
builds: [hway]
|
builds: [hway]
|
||||||
name_template: >-
|
name_template: >-
|
||||||
hway_{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64
|
hway_{{ .Os }}_{{- if eq .Arch "amd64" }}x86_64
|
||||||
{{- else if eq .Arch "386" }}i386
|
{{- else if eq .Arch "386" }}i386
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
format: tar.gz
|
format: tar.gz
|
||||||
@ -83,7 +83,7 @@ archives:
|
|||||||
nfpms:
|
nfpms:
|
||||||
- id: hway
|
- id: hway
|
||||||
package_name: hway
|
package_name: hway
|
||||||
file_name_template: "hway_{{ .Os }}_{{ .Arch }}.{{ .ConventionalExtension }}"
|
file_name_template: "hway_{{ .Os }}_{{ .Arch }}{{ .ConventionalExtension }}"
|
||||||
builds: [hway]
|
builds: [hway]
|
||||||
vendor: Sonr
|
vendor: Sonr
|
||||||
homepage: "https://onsonr.dev"
|
homepage: "https://onsonr.dev"
|
||||||
@ -106,7 +106,7 @@ nfpms:
|
|||||||
|
|
||||||
- id: sonr
|
- id: sonr
|
||||||
package_name: sonrd
|
package_name: sonrd
|
||||||
file_name_template: "sonrd_{{ .Os }}_{{ .Arch }}.{{ .ConventionalExtension }}"
|
file_name_template: "sonrd_{{ .Os }}_{{ .Arch }}{{ .ConventionalExtension }}"
|
||||||
builds: [sonr]
|
builds: [sonr]
|
||||||
vendor: Sonr
|
vendor: Sonr
|
||||||
homepage: "https://onsonr.dev"
|
homepage: "https://onsonr.dev"
|
||||||
@ -180,3 +180,10 @@ announce:
|
|||||||
telegram:
|
telegram:
|
||||||
enabled: true
|
enabled: true
|
||||||
chat_id: -1002222617755
|
chat_id: -1002222617755
|
||||||
|
|
||||||
|
reddit:
|
||||||
|
enabled: true
|
||||||
|
application_id: {{ .Env.REDDIT_APP_ID }}
|
||||||
|
username: {{ .Env.REDDIT_USERNAME }}
|
||||||
|
title_template: 'Sonr {{ .Tag }} was just released!'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user