This commit is contained in:
parent
eec88e05a9
commit
a9eaaf4df4
3 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ jobs:
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||||
GORELEASER_FORCE_TOKEN: "gitea"
|
GORELEASER_FORCE_TOKEN: "gitea"
|
||||||
- name: Copy deb to publish folder
|
- name: Copy deb to publish folder
|
||||||
run: mkdir publish; cp dist/softwatch_linux_amd64_v1/softwatch publish/softwatch_linux_amd64; cp dist/softwatch_linux_arm_7/softwatch publish/softwatch_linux_arm_7
|
run: mkdir publish; cp dist/softwatch_linux_amd64_v1/softwatch publish/softwatch-stable_linux_amd64; cp dist/softwatch_linux_arm_7/softwatch publish/softwatch-stable_linux_arm_7
|
||||||
- name: Upload to s3
|
- name: Upload to s3
|
||||||
uses: https://github.com/shallwefootball/s3-upload-action@master
|
uses: https://github.com/shallwefootball/s3-upload-action@master
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -3,7 +3,7 @@ Get an E-Mail notification if a new Release of an Software is available for you
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
|
|
||||||
Download the Version you want to use:
|
Download the Version you want to use, make the file executable, create a config.yml run `./softwatch config.yml`
|
||||||
|
|
||||||
## Linux ARM7 (Raspberry PI)
|
## Linux ARM7 (Raspberry PI)
|
||||||
|
|
||||||
|
|
2
main.go
2
main.go
|
@ -30,7 +30,7 @@ type software struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getConfig() config {
|
func getConfig() config {
|
||||||
data, err := os.ReadFile("config.yml")
|
data, err := os.ReadFile(os.Args[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal().Err(err).Msg("cant read config")
|
log.Fatal().Err(err).Msg("cant read config")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue