Skip to content

Commit

Permalink
pusblish
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelBarbosatec committed Nov 16, 2024
1 parent 87e6bae commit da7fecf
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,13 +20,5 @@ jobs:
with:
channel: 'stable'
cache: true
- name: Copy credentials
run: |
mkdir -p ~/Library/Application\ Support/dart
cat <<EOF > ~/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
- name: Publish
run: flutter pub publish --force

0 comments on commit da7fecf

Please sign in to comment.