Skip to content

Commit 636b462

Browse files
committed
update release script to dogfood.
1 parent bfe4739 commit 636b462

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
name: Build
1313
runs-on: ubuntu-latest
14-
container: ghcr.io/packagrio/packagr-dev:master
14+
container: golang:1.18
1515
env:
1616
PROJECT_PATH: /go/src/github.com/packagrio/releasr
1717
steps:
@@ -21,7 +21,7 @@ jobs:
2121
fetch-depth: 0
2222
- name: Bump version
2323
id: bump_version
24-
uses: packagrio/action-bumpr-go@master
24+
uses: packagrio/action-bumpr-go@dogfood
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
with:
@@ -37,16 +37,13 @@ jobs:
3737
cd $PROJECT_PATH
3838
3939
go mod vendor
40-
mkdir -p vendor/gopkg.in/libgit2/git2go.v25/vendor/libgit2/build/
41-
cp /usr/local/linux/lib/pkgconfig/libgit2.pc vendor/gopkg.in/libgit2/git2go.v25/vendor/libgit2/build/libgit2.pc
4240
43-
go test -mod vendor -v -tags "static" $(go list ./... | grep -v /vendor/)
41+
go test -mod vendor -v -tags "static" ./...
4442
# build linux binary
45-
. /scripts/toolchains/linux/linux-build-env.sh && go build -mod vendor -ldflags "-X main.goos=linux -X main.goarch=amd64" -o packagr-releasr-linux-amd64 -tags "static" cmd/releasr/releasr.go
43+
go build -mod vendor -ldflags "-X main.goos=linux -X main.goarch=amd64" -o packagr-releasr-linux-amd64 -tags "static" cmd/releasr/releasr.go
4644
4745
# build mac binary
48-
cp /usr/local/osx-ndk-x86/macports/pkgs/opt/local/lib/pkgconfig/libgit2.pc vendor/gopkg.in/libgit2/git2go.v25/vendor/libgit2/build/libgit2.pc
49-
. /scripts/toolchains/osx/osx-build-env.sh && go build -mod vendor -ldflags "-X main.goos=darwin -X main.goarch=amd64" -o packagr-releasr-darwin-amd64 -tags "static" cmd/releasr/releasr.go
46+
go build -mod vendor -ldflags "-X main.goos=darwin -X main.goarch=amd64" -o packagr-releasr-darwin-amd64 -tags "static" cmd/releasr/releasr.go
5047
5148
chmod +x packagr-releasr-linux-amd64
5249
chmod +x packagr-releasr-darwin-amd64
@@ -57,13 +54,13 @@ jobs:
5754
cp -arf $PROJECT_PATH/. $GITHUB_WORKSPACE/
5855
- name: Commit Changes
5956
id: commit
60-
uses: packagrio/action-releasr-go@master
57+
uses: packagrio/action-releasr-go@dogfood
6158
env:
6259
# This is necessary in order to push a commit to the repo
6360
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
6461
- name: Publish Release
6562
id: publish
66-
uses: packagrio/action-publishr-go@master
63+
uses: packagrio/action-publishr-go@dogfood
6764
env:
6865
# This is necessary in order to push a commit to the repo
6966
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged

0 commit comments

Comments
 (0)