From 57706bd02e44c2b0a1715c6839defa4a3662e078 Mon Sep 17 00:00:00 2001 From: Jindra Date: Tue, 14 Sep 2021 15:07:55 +0200 Subject: [PATCH] ci: add rm /docs and publish --force --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e8d9ec1f..e6636750 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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