ci: add rm /docs and publish --force

This commit is contained in:
Jindra 2021-09-14 15:07:55 +02:00 committed by Krille Fear
parent 0f7ce914e7
commit 57706bd02e
1 changed files with 3 additions and 1 deletions

View File

@ -55,6 +55,7 @@ dry-run:
stage: publish
image: google/dart
script:
- rm -rf ./docs
- dart pub get
- dart pub publish --dry-run
@ -62,6 +63,7 @@ pub-dev:
stage: publish
image: google/dart
script:
- rm -rf ./docs
- |
if [ -z "${PUB_DEV_PUBLISH_ACCESS_TOKEN}" ]; then
echo "Missing PUB_DEV_PUBLISH_ACCESS_TOKEN environment variable"
@ -93,6 +95,6 @@ pub-dev:
}
EOF
- dart pub get
- dart pub publish
- dart pub publish --force
rules:
- if: $CI_COMMIT_TAG