diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ed0da24e..c25abcae 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,9 +7,9 @@ on: jobs: publish: - + permissions: + id-token: write # Required for authentication using OIDC runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v1 @@ -20,13 +20,5 @@ jobs: with: channel: 'stable' cache: true - - name: Copy credentials - run: | - mkdir -p ~/Library/Application\ Support/dart - cat < ~/Library/Application\ Support/dart/pub-credentials.json - ${{ secrets.CREDENTIAL_JSON }} - EOF - mkdir -p ~/.pub-cache - ln -s ~/Library/Application\ Support/dart/pub-credentials.json credentials.json - - name: Publishing - run: flutter pub publish -f \ No newline at end of file + - name: Publish + run: flutter pub publish --force \ No newline at end of file