Skip to content

Commit

Permalink
change gorelease
Browse files Browse the repository at this point in the history
Signed-off-by: allan716 <525223688@qq.com>
  • Loading branch information
allanpk716 committed Jun 28, 2021
1 parent e8cfe15 commit dd3bedb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/manual_test.yml
Expand Up @@ -27,21 +27,14 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: change app version
run: |
# sed -i.bak 's/aabbcc/${{ steps.set-version.outputs.version }}/g' .goreleaser.yml
# rm -f .goreleaser.yml.bak
# sed -i.bak 's/aabbcc/${{ steps.set-version.outputs.version }}/g' Makefile
# sed -i.bak 's/aabbcc/${{ steps.set-version.outputs.version }}/g' Makefile.cross-compiles

- name: Create Release
id: create_release
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GO111MODULE: "on"
run: docker run -e DOCKER_USERNAME=$DOCKER_USERNAME -e DOCKER_PASSWORD=$DOCKER_PASSWORD -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} --rm --privileged -v $GITHUB_WORKSPACE:/go/src/github.com/allanpk716/chinesesubfinder -v /var/run/docker.sock:/var/run/docker.sock -w /go/src/github.com/allanpk716/chinesesubfinder neilotoole/xcgo goreleaser --rm-dist
run: docker run -e DOCKER_USERNAME=$DOCKER_USERNAME -e DOCKER_PASSWORD=$DOCKER_PASSWORD -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} --rm --privileged -v $GITHUB_WORKSPACE:/go/src/github.com/allanpk716/chinesesubfinder -v /var/run/docker.sock:/var/run/docker.sock -w /go/src/github.com/allanpk716/chinesesubfinder techknowlogick/xgo:latest goreleaser --rm-dist



Expand Down
6 changes: 0 additions & 6 deletions .goreleaser.yml
Expand Up @@ -14,7 +14,6 @@ builds:
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
goos:
- windows
Expand All @@ -27,9 +26,6 @@ builds:
main: ./main.go
env:
- CGO_ENABLED=1
#- CC=x86_64-linux-musl-gcc
# flags:
# - '-extldflags "-static"'
goos:
- linux
goarch:
Expand All @@ -40,8 +36,6 @@ builds:
main: ./main.go
env:
- CGO_ENABLED=1
# comment CC line if releasing from macOS
#- CC=x86_64-apple-darwin14-clang
- CC=o64-clang
- CXX=o64-clang++
goos:
Expand Down

0 comments on commit dd3bedb

Please sign in to comment.