Skip to content

Commit

Permalink
Do the same for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
comigor committed Feb 1, 2020
1 parent 59a03ed commit e993337
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions pub-publish/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM cirrusci/flutter:stable

ENV PUB_CREDENTIALS="{}"
ENV DTA_IS_FLUTTER=""

LABEL "maintainer"="Igor Borges <igor@borges.dev>"
LABEL "repository"="https://github.com/comigor/actions"
Expand Down
8 changes: 7 additions & 1 deletion pub-publish/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#!/bin/sh
set -eu

echo "DTA_IS_FLUTTER=$DTA_IS_FLUTTER"

cd "$GITHUB_WORKSPACE"

echo "Downloading dependencies"
flutter pub get
if [ -z "$DTA_IS_FLUTTER" ]; then
pub get
else
flutter pub get
fi

echo "$PUB_CREDENTIALS" > ~/.pub-cache/credentials.json

Expand Down

0 comments on commit e993337

Please sign in to comment.