Created
October 12, 2022 20:26
-
-
Save jjtroberts/ce47b7de31711ae01e78ddd445227fdd to your computer and use it in GitHub Desktop.
Bitbucket Pipeline - Create Build Artifact
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:6.15.0 | |
pipelines: | |
default: | |
- step: | |
caches: | |
- node | |
script: | |
- apt-get update | |
- apt-get install -y zip curl | |
- npm install | |
- npm install -g bower gulp node-sass | |
- bower install --allow-root | |
- gulp --production | |
- rm -rf node_modules bower_components | |
- zip -r ../output.zip . | |
- curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"../output.zip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment