cli-release.yaml 970 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Releaser
  2. on:
  3. push:
  4. tags:
  5. - "v1*"
  6. jobs:
  7. upload-release:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Set up Go 1.16
  11. uses: actions/setup-go@v2
  12. with:
  13. go-version: 1.16
  14. id: go
  15. - name: Setup docker CLI
  16. run: |
  17. curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz | tar xz
  18. sudo cp ./docker/docker /usr/bin/ && rm -rf docker && docker version
  19. - name: Checkout code into the Go module directory
  20. uses: actions/checkout@v2
  21. - uses: actions/cache@v2
  22. with:
  23. path: ~/go/pkg/mod
  24. key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
  25. restore-keys: |
  26. ${{ runner.os }}-go-
  27. - name: Build
  28. run: make -f builder.Makefile cross
  29. - uses: ncipollo/release-action@v1
  30. with:
  31. artifacts: "bin/*"
  32. prerelease: true
  33. token: ${{ secrets.GITHUB_TOKEN }}