Deploy to vercel
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Sainnhe Park 2023-02-28 20:57:52 +08:00
parent 1f13bd1698
commit e5a7460c6e
2 changed files with 41 additions and 1 deletions

40
.woodpecker/deploy.yml Normal file
View File

@ -0,0 +1,40 @@
branches: master
pipeline:
build:
when:
path: [".woodpecker/*", "notes/*"]
image: docker.io/sainnhe/mdbook:latest
commands:
- mdbook build notes
deploy:
when:
path: [".woodpecker/*", "notes/*"]
image: docker.io/sainnhe/vercel:latest
secrets:
- VERCEL_TOKEN
- VERCEL_PROJECT_ID
- VERCEL_ORG_ID
commands:
- vercel notes/book --token $VERCEL_TOKEN --prod
notify:
when:
status:
- failure
image: docker.io/sainnhe/mailer:latest
commands:
- mailer
secrets:
[
MAILER_FROM_ADDRESS,
MAILER_FROM_NAME,
MAILER_RECIPIENTS,
MAILER_USER_NAME,
MAILER_PASSWORD,
MAILER_HOST,
MAILER_PORT,
MAILER_USE_STARTTLS,
]
environment:
- MAILER_SUBJECT=Run Failed
- MAILER_BODY=${CI_BUILD_LINK}

View File

@ -24,7 +24,7 @@
- [替换空格](./substitute_spaces.md) - [替换空格](./substitute_spaces.md)
- [翻转字符串里的单词](./reverse_words_in_a_string.md) - [翻转字符串里的单词](./reverse_words_in_a_string.md)
- [左旋转字符串](./reverse_left_words.md) - [左旋转字符串](./reverse_left_words.md)
- [KMP](./kmp.md) - [KMP](./kmp.md)
- [重复的子字符串](./repeated_substring_pattern.md) - [重复的子字符串](./repeated_substring_pattern.md)
# 栈与队列 # 栈与队列