|
|
|
@ -5,12 +5,15 @@ name: default
@@ -5,12 +5,15 @@ name: default
|
|
|
|
|
steps: |
|
|
|
|
- name: Build |
|
|
|
|
image: golang |
|
|
|
|
environment: |
|
|
|
|
NASA_TOKEN: |
|
|
|
|
from_secret: nasa_api |
|
|
|
|
commands: |
|
|
|
|
- go get github.com/reujab/wallpaper |
|
|
|
|
- go vet -v |
|
|
|
|
- GOOS="linux" go build -o SpaceFace-Linux |
|
|
|
|
- GOOS="windows" go build -o SpaceFace-Win.exe |
|
|
|
|
- GOOS="darwin" go build -o SpaceFace-macOS |
|
|
|
|
- GOOS="linux" go build -ldflags="-w -s -x main.api_key=${NASA_TOKEN}" -o SpaceFace-Linux |
|
|
|
|
- GOOS="windows" go build -ldflags="-w -s -x main.api_key=${NASA_TOKEN}" -o SpaceFace-Win.exe |
|
|
|
|
- GOOS="darwin" go build -ldflags="-w -s -x main.api_key=${NASA_TOKEN}" -o SpaceFace-macOS |
|
|
|
|
- name: gitea_release |
|
|
|
|
image: plugins/gitea-release |
|
|
|
|
settings: |
|
|
|
|