Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeiffer committed May 28, 2023
1 parent b305233 commit 6bc260d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
channel: ${{ inputs.channel }}

- name: Publish
uses: peiffer-innovations/[email protected].1
uses: peiffer-innovations/[email protected].2
with:
credentials: ${{ secrets.CREDENTIALS_JSON }}
```
Expand Down
16 changes: 9 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
# action.yml
name: "Publish Dart/Flutter package"
description: "Publish Dart/Flutter package"
name: 'Publish Dart/Flutter package'
description: 'Publish Dart/Flutter package'
inputs:
credentials:
description: "Credentials JSON to use"
description: 'Credentials JSON to use'
required: true
path:
description: '(Optional) Package directory (default: ".")'
required: false
default: "."
default: '.'

runs:
using: "composite"
using: 'composite'
steps:
- name: Publish
shell: bash
id: publish
run: |
set -e
set +e
mkdir ~/.config
mkdir ~/.config/dart
set -e
printf '${{ inputs.credentials }}' > ~/.config/dart/pub-credentials.json
dart pub publish --force
Expand Down

0 comments on commit 6bc260d

Please sign in to comment.