Skip to content

Commit

Permalink
grant private repository
Browse files Browse the repository at this point in the history
  • Loading branch information
whywaita committed Jan 26, 2021
1 parent 8aca907 commit 75e57c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

env:
GOPRIVATE: "github.com/lovi-cloud/*"

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -16,6 +19,9 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Granting private modules access
run: |
git config --global url."https://whywaita:${{ secrets.GO_MODULES_TOKEN }}@github.com/lovi-cloud".insteadOf "https://github.com/lovi-cloud"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down

0 comments on commit 75e57c7

Please sign in to comment.