Skip to content

Commit

Permalink
add publish
Browse files Browse the repository at this point in the history
  • Loading branch information
huangnauh committed Jan 7, 2021
1 parent f614de5 commit 91e117d
Show file tree
Hide file tree
Showing 7 changed files with 428 additions and 26 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build
on: [push, pull_request]
on:
pull_request:
push:
tags-ignore:
- '*'

jobs:
build:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
UPYUN_RELEASE_BUCKET: ${{ secrets.UPYUN_RELEASE_BUCKET }}
UPYUN_RELEASE_USERNAME: ${{ secrets.UPYUN_RELEASE_USERNAME }}
UPYUN_RELEASE_PASSWORD: ${{ secrets.UPYUN_RELEASE_PASSWORD }}
steps:
-
name: Checkout
Expand All @@ -17,6 +21,10 @@ jobs:
-
name: Set up Go
uses: actions/setup-go@v2
- name: Build Upx
run: |
go build
./upx login "${{ env.UPYUN_RELEASE_BUCKET }}" "${{ env.UPYUN_RELEASE_USERNAME }}" "${{ env.UPYUN_RELEASE_PASSWORD }}"
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Lint
on:
push:
pull_request:
push:
tags-ignore:
- '*'

jobs:
golangci:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Test
on: [push, pull_request]
on:
pull_request:
push:
tags-ignore:
- '*'

jobs:
build:
Expand Down
9 changes: 8 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,18 @@ archives:
amd64: x86_64
checksum:
name_template: "checksums.txt"
publishers:
- name: upyun
checksum: true
cmd: ../upx put {{ .ArtifactName }} /softwares/upx/
dir: "{{ dir .ArtifactPath }}"
env:
- HOME={{ .Env.HOME }}
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^test:"
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 91e117d

Please sign in to comment.