Skip to content

Commit

Permalink
PLANET-5484 Add step descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Inwerpsel committed Sep 29, 2020
1 parent 8e8d8cb commit 5af0cb2
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,19 +194,26 @@ jobs:
- run: git submodule init && git submodule update
- run: PUPPETEER_SKIP_DOWNLOAD=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm ci
- run: npm run build
- run: rm -rf .circleci .git .githooks assets/src bin tests
- run:
name: "Remove files we don't want in the zip file."
command: rm -rf .circleci .git .githooks assets/src bin tests
- run: mkdir -p /tmp/workspace/
- run: zip -r /tmp/workspace/planet4-master-theme.zip . -x "node_modules/*"
- run: ls -lh /tmp/workspace/planet4-master-theme.zip
# Exclude node_modules instead of removing, which takes a long time (lots of small files).
- run:
name: "Create zip file"
command: zip -r /tmp/workspace/planet4-master-theme.zip . -x "node_modules/*"
- run:
name: "Zip file size"
command: ls -lh /tmp/workspace/planet4-master-theme.zip
- run:
name: "Get upload url for this tag."
name: "Get upload url for this tag"
command: |
curl https://api.github.com/repos/greenpeace/planet4-master-theme/releases/tags/${CIRCLE_TAG} |
jq -r .upload_url |
sed 's/{.*}/?name=planet4-master-theme.zip/' > /tmp/workspace/upload_url
- run: cat /tmp/workspace/upload_url
jq -r .upload_url |
sed 's/{.*}/?name=planet4-master-theme.zip/' > /tmp/workspace/upload_url
cat /tmp/workspace/upload_url
- run:
name: "Upload zip"
name: "Upload zip file"
command: |
curl \
--fail \
Expand Down

0 comments on commit 5af0cb2

Please sign in to comment.