feat(sensor): track metrics direction label (#737) #123
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release | |
| on: | |
| push: | |
| # run only against tags | |
| tags: | |
| - "*" | |
| permissions: | |
| contents: write | |
| env: | |
| GO_VERSION: "1.24.1" | |
| jobs: | |
| manual-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v5 | |
| - name: Install go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Install packages | |
| run: sudo apt-get update && sudo apt-get install --yes gcc-aarch64-linux-gnu | |
| - name: Perform cross builds | |
| run: make cross | |
| - name: Compress binaries | |
| run: | | |
| cd out | |
| tar czf polycli_${GITHUB_REF#refs/tags/}_linux_arm64.tar.gz polycli_${GITHUB_REF#refs/tags/}_linux_arm64/ | |
| tar czf polycli_${GITHUB_REF#refs/tags/}_linux_amd64.tar.gz polycli_${GITHUB_REF#refs/tags/}_linux_amd64/ | |
| - name: Get git tag | |
| run: echo "tag=$(git describe --tags --exact-match HEAD)" >> $GITHUB_ENV | |
| - name: Publish binaries | |
| uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # 2.11.2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| tag: ${{ env.tag }} | |
| release_name: ${{ env.tag }} | |
| file_glob: true | |
| file: out/*.tar.gz | |
| overwrite: true |