Skip to content

Commit

Permalink
Update sdkrelease.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
namidan authored Nov 7, 2023
1 parent 1cafa85 commit aff028f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/sdkrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,20 @@ jobs:
env:
NAMI_SDK_VERSION: ${{ inputs.version }}

- name: Write credentials
run: |
mkdir ~/.config/dart/
echo $PUB_DEV_CREDENTIAL_JSON >> ~/.config/dart/pub-credentials.json
env:
PUB_DEV_CREDENTIAL_JSON: ${{ secrets.PUB_DEV_CREDENTIAL_JSON }}

- name: Publish
run: |
cd sdk
dart pub publish -f
- name: Create Github Release
run: |-
sh gh-release-command.sh
env:
GITHUB_TOKEN: ${{ github.token }}

publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
# Specify the github actions deployment environment
environment: pub.dev
working-directory: sdk/

0 comments on commit aff028f

Please sign in to comment.