wireproxy.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Cross compile WireProxy
  2. on:
  3. workflow_dispatch:
  4. # push:
  5. # tags:
  6. # - "v*"
  7. jobs:
  8. WireProxy:
  9. name: Cross compile WireProxy
  10. runs-on: ubuntu-20.04
  11. env:
  12. workdir: ./WireProxy
  13. VERSION: 1.0.3
  14. steps:
  15. - name: Checkout code
  16. uses: actions/[email protected]
  17. with:
  18. fetch-depth: 0
  19. - name: Git clone WireProxy
  20. run: |
  21. git clone https://github.com/octeep/wireproxy.git ${{ env.workdir }}
  22. cp ./.github/wireproxy-releaser.yml ${{ env.workdir }}/.goreleaser.yml
  23. - name: Set up GoReleaser
  24. uses: actions/[email protected]
  25. with:
  26. go-version: "1.18"
  27. - name: Run GoReleaser
  28. uses: goreleaser/[email protected]
  29. with:
  30. distribution: goreleaser
  31. workdir: ${{ env.workdir }}
  32. version: latest
  33. args: release --clean
  34. - name: Release binaries
  35. uses: softprops/action-gh-release@v1
  36. with:
  37. tag_name: WireProxy_v${{ env.VERSION }}
  38. files: ${{ env.workdir }}/dist/*.tar.gz