github.1485827954.workers.dev/newrelic/newrelic-client-go@v1.1.0/.github/workflows/release.yml (about) 1 name: Release 2 on: 3 push: 4 branches: [main] 5 6 permissions: write-all 7 8 jobs: 9 release: 10 runs-on: ubuntu-latest 11 steps: 12 - name: Install Go 13 uses: actions/setup-go@v3 14 with: 15 go-version: 1.18.x 16 17 - name: Add GOBIN to PATH 18 run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH 19 shell: bash 20 21 - name: Checkout code 22 uses: actions/checkout@v3 23 with: 24 fetch-depth: 0 25 token: ${{ secrets.RELEASE_TOKEN }} 26 27 - name: Publish Release 28 shell: bash 29 env: 30 GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} 31 DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} 32 DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} 33 run: | 34 git config --global user.name nr-developer-toolkit 35 git config --global user.email 62031461+nr-developer-toolkit@users.noreply.github.com 36 make release