-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3eaaf50
commit 7c4dd65
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release assets | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build: | ||
name: Build Release Assets | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.23" | ||
|
||
- name: Display the release tag | ||
run: echo ${{ github.event.release.tag_name }} | ||
|
||
- name: Build | ||
run: ./release.sh | ||
|
||
# https://github.com/svenstaro/upload-release-action | ||
- name: Upload the Rodeo binaries | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
file: ./release/* | ||
file_glob: true | ||
overwrite: true | ||
make_latest: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
rm -rf release/ | ||
|
||
VER=$1 | ||
if [ -z "$1" ]; then | ||
VER="v0.0" | ||
fi | ||
|
||
echo "Building version: $VER" | ||
export GOARCH=amd64 | ||
|
||
export GOOS=windows | ||
go build -v -o release/exif-rename_${VER}_${GOOS}-${GOARCH}.exe . | ||
|
||
export GOOS=linux | ||
go build -v -o release/exif-rename_${VER}_${GOOS}-${GOARCH} . | ||
|
||
export GOOS=darwin | ||
go build -v -o release/exif-rename_${VER}_${GOOS}-${GOARCH} . |