From 610c937403e1ca7bb7e326b5c4dfea1f64d34c0a Mon Sep 17 00:00:00 2001 From: YSTYLE Date: Sun, 21 Jun 2020 17:59:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E6=8E=89go.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/go.yml | 58 ---------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index a7a6cf7..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Go - -on: - push: - branches: - - master - tags: - - v* - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: ^1.13 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - export GO111MODULE=off - go get github.com/GeertJohan/go.rice - go get github.com/GeertJohan/go.rice/rice - curl http://kindlegen.s3.amazonaws.com/kindlegen_win32_v2_9.zip | tar -zx - export GO111MODULE=on - - - name: Build-windows - env: - GOOS: windows - run: | - go build -ldflags "-s -w" -o kas.exe -v main.go - zip kas-windows.zip --junk-paths kindle.exe kas.exe - - - name: Build-linux - env: - GOOS: linux - run: go build -ldflags "-s -w" -o kas-linux -v main.go - - - name: Build-osx - env: - GOOS: darwin - run: go build -ldflags "-s -w" -o kas-darwin -v main.go - - - name: upload - uses: xresloader/upload-to-github-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - file: "kas-*" - tags: true - draft: false - overwrite: true - verbose: true