diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..925ed81 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,32 @@ +name: Release +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Publish + run: go list -m github.com/${{ github.repository }}/@${{ github.ref_name }} + + download: + runs-on: ubuntu-latest + needs: + - publish + steps: + - name: Go Mod Init + run: go mod init github.com/wernerstrydom/conversion-example + - name: Go Get + run: GOPROXY=https://proxy.golang.org GO111MODULE=on go get github.com/${{ github.repository }}/@${{ github.ref_name }}