resume-manpage/.woodpecker.yml
bdeshi b78185ab37
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci: fix publish cmds
2024-05-17 09:53:05 +06:00

28 lines
598 B
YAML

# https://woodpecker-ci.org/docs/intro
when:
event: [push, manual]
branch: main
steps:
- name: build
image: node:18
when:
- path:
exclude: ['meta/**']
commands:
- yarn install
- yarn build
- name: publish
image: amazon/aws-cli:2.15.50
commands:
- aws s3 cp --recursive ./dist s3://$${S3_BUCKET}/
- aws cloudfront create-invalidation --distribution-id $${CLOUDFRONT_DISTRIBUTION} --paths '/*'
secrets:
- S3_BUCKET
- CLOUDFRONT_DISTRIBUTION
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_REGION