Skip to content

Commit

Permalink
Init Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
riwanl8 committed Aug 1, 2024
0 parents commit 2cc9505
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to pkg.go.dev

on:
release:
types: [published]

env:
MANIFEST_PATH: .manifest.json

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Read module name
id: read_module_name
run: echo "module_name=$(jq -r '.config.languageOptions.go.goModuleName' $MANIFEST_PATH)" >> "$GITHUB_OUTPUT"

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "1.18"

- name: Install package dependencies
run: go mod download

- name: Run list command to request indexing
run: GOPROXY=proxy.golang.org go list -m ${{ steps.read_module_name.outputs.module_name }}

0 comments on commit 2cc9505

Please sign in to comment.