github.com/openziti/transport@v0.1.5/.github/workflows/main.yml (about) 1 name: build 2 3 on: 4 push: 5 branches: 6 - main 7 - release-* 8 pull_request: 9 workflow_dispatch: 10 11 jobs: 12 build: 13 runs-on: ubuntu-18.04 14 steps: 15 - name: Git Checkout 16 uses: actions/checkout@v2 17 with: 18 persist-credentials: false 19 20 - name: Install Go 21 uses: actions/setup-go@v2 22 with: 23 go-version: '~1.18.0' 24 25 - name: Install Ziti CI 26 uses: netfoundry/ziti-ci@v1 27 28 - name: Build and Test 29 run: go test ./... 30 31 - name: Release 32 env: 33 gh_ci_key: ${{ secrets.GH_CI_KEY }} 34 ziti_ci_gpg_key: ${{ secrets.ZITI_CI_GPG_KEY }} 35 ziti_ci_gpg_key_id: ${{ secrets.ZITI_CI_GPG_KEY_ID }} 36 if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') 37 run: | 38 $(go env GOPATH)/bin/ziti-ci configure-git 39 $(go env GOPATH)/bin/ziti-ci tag -v -f version 40 $(go env GOPATH)/bin/ziti-ci trigger-github-build openziti/channel update-dependency --token ${{ secrets.ZITI_CI_GH_TOKEN }}