ci: add rm /docs and publish --force
This commit is contained in:
parent
0f7ce914e7
commit
57706bd02e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue