Skip to content

Commit

Permalink
fix: add action for publishing (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
basselalaraaj authored Jan 1, 2021
1 parent 0c9b288 commit 2ce10bd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: publish
on:
release:
types: [created]
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Test
run: go get -d "github.com/basselalaraaj/graphql-schema-registry@${{ steps.get_version.outputs.VERSION }}"

0 comments on commit 2ce10bd

Please sign in to comment.