From 6c630eb1d14da76ae9d76f6be283a805d06219a8 Mon Sep 17 00:00:00 2001 From: diniz-lucas Date: Fri, 26 Apr 2024 14:36:01 -0300 Subject: [PATCH] feat: publish --- .github/workflows/publish.yml | 58 +++++++++++++++++------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a7cd014..c61a5ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,12 +9,12 @@ on: branches: - main -jobs: - publish: - name: 'Publish to pub.dev' - permissions: - id-token: write - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 +#jobs: +# publish: +# name: 'Publish to pub.dev' +# permissions: +# id-token: write +# uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 #jobs: # publish: @@ -43,26 +43,26 @@ jobs: -#jobs: -# publish: -# name: 'Publish to pub.dev' -## environment: ${{ inputs.environment }} -# permissions: -# id-token: write # This is required for requesting the JWT -# runs-on: ubuntu-latest -# steps: -# # Checkout repository -# - uses: actions/checkout@v4 -# # Setup Dart SDK with JWT token -# - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 -# # Minimal package setup and dry run checks. -# - name: Install dependencies -# run: dart pub get -## working-directory: ${{ inputs.working-directory }} -# - name: Publish - dry run -# run: dart pub publish --dry-run -## working-directory: ${{ inputs.working-directory }} -# # Publishing... -# - name: Publish to pub.dev -# run: dart pub publish -f -## working-directory: ${{ inputs.working-directory }} \ No newline at end of file +jobs: + publish: + name: 'Publish to pub.dev' +# environment: ${{ inputs.environment }} + permissions: + id-token: write # This is required for requesting the JWT + runs-on: ubuntu-latest + steps: + # Checkout repository + - uses: actions/checkout@v4 + # Setup Dart SDK with JWT token + - uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3 + # Minimal package setup and dry run checks. + - name: Install dependencies + run: dart pub get + working-directory: ${{ inputs.working-directory }} + - name: Publish - dry run + run: dart pub publish --dry-run + working-directory: ${{ inputs.working-directory }} + # Publishing... + - name: Publish to pub.dev + run: dart pub publish -f + working-directory: ${{ inputs.working-directory }} \ No newline at end of file