ci: add rm /docs and publish --force
This commit is contained in:
parent
0f7ce914e7
commit
57706bd02e
|
|
@ -55,6 +55,7 @@ dry-run:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: google/dart
|
image: google/dart
|
||||||
script:
|
script:
|
||||||
|
- rm -rf ./docs
|
||||||
- dart pub get
|
- dart pub get
|
||||||
- dart pub publish --dry-run
|
- dart pub publish --dry-run
|
||||||
|
|
||||||
|
|
@ -62,6 +63,7 @@ pub-dev:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: google/dart
|
image: google/dart
|
||||||
script:
|
script:
|
||||||
|
- rm -rf ./docs
|
||||||
- |
|
- |
|
||||||
if [ -z "${PUB_DEV_PUBLISH_ACCESS_TOKEN}" ]; then
|
if [ -z "${PUB_DEV_PUBLISH_ACCESS_TOKEN}" ]; then
|
||||||
echo "Missing PUB_DEV_PUBLISH_ACCESS_TOKEN environment variable"
|
echo "Missing PUB_DEV_PUBLISH_ACCESS_TOKEN environment variable"
|
||||||
|
|
@ -93,6 +95,6 @@ pub-dev:
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
- dart pub get
|
- dart pub get
|
||||||
- dart pub publish
|
- dart pub publish --force
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue