Skip to content

Commit

Permalink
Create release.yaml
Browse files Browse the repository at this point in the history
Adds Release
  • Loading branch information
bloudraak authored Dec 11, 2023
1 parent b765514 commit 6d106ee
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 6d106ee

Please sign in to comment.