This repository was archived by the owner on Feb 2, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
32 lines (32 loc) · 1.51 KB
/
bitbucket-pipelines.yml
File metadata and controls
32 lines (32 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
image: node:4.6.0
pipelines:
default:
- step:
caches:
- node
script:
- apt-get update
- apt-get -qq install git-ftp
- npm install
- npm install gulp-cli -g
- gulp build
- echo ${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}
- git ftp push --user $SFTP_1AND1_USER --passwd $SFTP_1AND1_PWD sftp://$SFTP_1AND1_HOST:22 --all
- curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"dist/infinityscroll.css"
- curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"dist/infinityscroll.js"
branches:
release:
- step:
caches:
- node
script:
- npm install
- npm install gulp-cli -g
- gulp build
- printf "//`node -p \"require('url').parse(process.env.NPM_REGISTRY_URL || 'https://registry.npmjs.org').host\"`/:_authToken=${NPM_TOKEN}\nregistry=${NPM_REGISTRY_URL:-https://registry.npmjs.org}\n" >> ~/.npmrc
- git config user.email "francois.achache@gmail.com"
- git config user.name "hhfrancois"
- npm version patch
- git push origin $BITBUCKET_BRANCH:master
- git push origin --tags
- npm publish