Skip to content

Commit

Permalink
fix pre-compiled credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
nekr0z committed Oct 3, 2022
1 parent 73ea2ff commit 20fdd2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ jobs:
GOOS=${{ matrix.goos }}
GOARCH=${{ matrix.goarch }}
CGO_ENABLED=0
go build -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID_WEB }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET_WEB }}"
go build -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET }}"
echo "successful build for" $GOOS $GOARCH
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
changelog -n "Evgeny Kuznetsov" -e "[email protected]" -p "gphotosync" CHANGELOG.md
VER=$(go generate)
for ARCH in amd64 386 arm arm64; do
GOARCH=$ARCH CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID_WEB }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET_WEB }}"
GOARCH=$ARCH CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET }}"
tar -czf release/gphotosync-$VER-linux-$ARCH.tar.gz gphotosync LICENSE README.md CHANGELOG.md SOURCE.txt
fpm -t deb -s dir \
-a $ARCH \
Expand All @@ -57,10 +57,10 @@ jobs:
mv *.deb release/
done
for ARCH in amd64 386; do
GOOS=windows GOARCH=$ARCH go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID_WEB }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET_WEB }}"
GOOS=windows GOARCH=$ARCH go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET }}"
zip -q release/gphotosync-$VER-windows-$ARCH.zip gphotosync.exe LICENSE README.md CHANGELOG.md
done
GOOS=darwin GOARCH=amd64 go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID_WEB }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET_WEB }}"
GOOS=darwin GOARCH=amd64 go build -trimpath -ldflags "-s -w -buildid= -X main.version=$VER -X main.googleClientId=${{ secrets.CLIENT_ID }} -X main.googleClientSecret=${{ secrets.CLIENT_SECRET }}"
tar -czf release/gphotosync-$VER-darwin-amd64.tar.gz gphotosync LICENSE README.md CHANGELOG.md SOURCE.txt
cd release
fpm -s deb -t deb -a i386 *386.deb
Expand Down

0 comments on commit 20fdd2f

Please sign in to comment.