-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from Firxiao/master
Add release workflow
- Loading branch information
Showing
14 changed files
with
18,857 additions
and
8,266 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,39 @@ | ||
# .github/workflows/release.yaml | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
releases-matrix: | ||
name: Release Go Binary | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64 | ||
goos: [linux, windows, darwin] | ||
goarch: ["386", amd64, arm64, mipsle] | ||
exclude: | ||
- goarch: "386" | ||
goos: darwin | ||
- goarch: mipsle | ||
goos: windows | ||
- goarch: mipsle | ||
goos: darwin | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.18.1' | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 17 | ||
- run: bash pre-build.sh | ||
- uses: wangyoucao577/go-release-action@v1.28 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
goos: ${{ matrix.goos }} | ||
goarch: ${{ matrix.goarch }} | ||
project_path: "./cmd/" | ||
binary_name: "fileUpdater" | ||
extra_files: LICENSE README.md |
This file was deleted.
Oops, something went wrong.
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
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
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,14 @@ | ||
#!/usr/bin/env bash | ||
# build vue for further use | ||
go get github.com/GeertJohan/go.rice/rice | ||
go install github.com/GeertJohan/go.rice/rice | ||
cd vue | ||
npm install | ||
npm run build | ||
echo "move file for go binding data" | ||
mkdir -pv ../pkg/binding/dist/ | ||
mv -f dist/statics/{css,fonts,img,js} ../pkg/binding/dist/ | ||
mv dist/{index.html,favicon.ico} ../pkg/binding/dist/ | ||
echo "binding data" | ||
cd ../pkg/binding | ||
rice embed-go |
Oops, something went wrong.