include: project: "famedly/company/frontend/ci-templates" file: "all.yml" test: tags: - linux stage: test image: dart script: - dart pub get - dart pub run test dry-run: stage: deploy image: dart script: - rm -rf ./docs - dart pub get - dart pub publish --dry-run pub-dev: stage: deploy image: dart dependencies: [dry-run] script: - rm -rf ./docs - | if [ -z "${PUB_DEV_CREDENTIALS}" ]; then echo "Missing PUB_DEV_CREDENTIALS environment variable" exit 1 fi mkdir -p ~/.config/dart/ cp "${PUB_DEV_CREDENTIALS}" ~/.config/dart/pub-credentials.json - dart pub get - dart pub publish --force rules: - if: $CI_COMMIT_TAG