Actually made use of the writing of image data
Some checks failed
/ publish (push) Failing after 1m36s
Some checks failed
/ publish (push) Failing after 1m36s
This commit is contained in:
parent
c9f3944c72
commit
f5d3e4d582
|
|
@ -26,7 +26,9 @@ jobs:
|
|||
cp -r site/* build/.
|
||||
- name: Building Header Image
|
||||
run: |
|
||||
go run ./cmd/fetch-header-image -o build/imgs/header.jpg
|
||||
go run ./cmd/fetch-header-image -o build/imgs/header.jpg \
|
||||
-curr-image-data https://assets.lmika.org/data/current-pending-images.json
|
||||
-out-data build/data/current-pending-images.json
|
||||
- name: Deploying Site
|
||||
run: |
|
||||
netlify deploy --dir build --prod
|
||||
|
|
@ -15,9 +15,9 @@ import (
|
|||
|
||||
func main() {
|
||||
headerImages := flag.String("i", "data/pending-header-images.json", "header images json file")
|
||||
currentPendingImage := flag.String("ip", "", "current pending image")
|
||||
currentPendingImage := flag.String("curr-image-data", "", "current header image URL")
|
||||
targetFile := flag.String("o", "out.jpg", "target file")
|
||||
odFile := flag.String("od", "out-data.json", "target file data")
|
||||
odFile := flag.String("out-data", "out-data.json", "target file data")
|
||||
flag.Parse()
|
||||
|
||||
pis, err := LoadPendingImages(*headerImages)
|
||||
|
|
|
|||
Loading…
Reference in a new issue