Skip to content

Commit

Permalink
Update pkg-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
suhas-cashfree authored Jan 24, 2024
1 parent cea4000 commit 1263a85
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/pkg-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "Cashfree Payments"
go mod tidy
GOPROXY=proxy.golang.org go list -m github.com/cashfree/cashfree-pg/v3@"${{ steps.get-latest-tag.outputs.tag }}"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.TOKEN_GITHUB }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/cashfree/cashfree-pg/releases \
-d '{"tag_name":"${{ steps.get-latest-tag.outputs.tag }}","target_commitish":"main","name":"${{ steps.get-latest-tag.outputs.tag }}","body":"Version ${{ steps.get-latest-tag.outputs.tag }}","draft":false,"prerelease":false,"generate_release_notes":false}'
GOPROXY=proxy.golang.org go list -m github.com/cashfree/cashfree-pg/v4@"${{ steps.get-latest-tag.outputs.tag }}"
curl --location --request POST 'https://api.github.com/repos/cashfree/cashfree-pg/releases' \
--header 'Accept: application/vnd.github+json' \
--header "Authorization: Bearer ${{ secrets.TOKEN_GITHUB }}" \
--header 'X-GitHub-Api-Version: 2022-11-28' \
--header 'Content-Type: application/json' \
--data-raw '{
"tag_name": "${{ steps.get-latest-tag.outputs.tag }}",
"target_commitish": "main",
"name": "${{ steps.get-latest-tag.outputs.tag }}",
"body": "Release version ${{ steps.get-latest-tag.outputs.tag }}",
"draft": false,
"prerelease": false,
"generate_release_notes": false
}'
env:
GOPROXY: proxy.golang.org

0 comments on commit 1263a85

Please sign in to comment.