Skip to content

Commit

Permalink
Fix artefact missing after build
Browse files Browse the repository at this point in the history
  • Loading branch information
righettod committed Apr 21, 2019
1 parent b8bf641 commit 392ed53
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- run: 'zip -T site.zip'
- store_artifacts:
path: ./site.zip
destination: OfflineWebsite-Build.zip
destination: bundle.zip
deploy-offline-website:
docker:
- image: 'circleci/node:10-stretch'
Expand All @@ -41,8 +41,8 @@ jobs:
- run: 'git checkout gh-pages'
- run: 'git branch'
- run: 'tgt=`curl -s https://circleci.com/api/v1.1/project/github/OWASP/CheatSheetSeries/latest/artifacts | jq -r .[0].url` ; wget $tgt'
- run: 'zip -T OfflineWebsite-Build.zip'
- run: 'unzip OfflineWebsite-Build.zip'
- run: 'zip -T bundle.zip'
- run: 'unzip bundle.zip'
- run: 'rm -rf assets 1>/dev/null 2>&1'
- run: 'rm -rf cheatsheets 1>/dev/null 2>&1'
- run: 'rm -rf gitbook 1>/dev/null 2>&1'
Expand All @@ -51,15 +51,11 @@ jobs:
- run: 'mv site/* .'
- run: 'upd=`date +"%Y-%m-%d at %T"`; echo "Website last update: $upd." > README.md'
- run: 'rm -rf site'
- run: 'echo "OfflineWebsite-Build.zip" > .gitignore'
- run: 'git config --global user.email "OWASP-CheatSheetSeries@circleci.com"'
- run: 'git config --global user.name "CircleCI-CheatSheetSeries"'
- run: 'git add --all .'
- run: 'git commit -a -m "Deploy the generated website via CircleCI pipeline."'
- run: 'git push'
- store_artifacts:
path: ./OfflineWebsite-Build.zip
destination: OfflineWebsite-Build.zip
- run: 'git push'
workflows:
version: 2
build-publish-deploy:
Expand Down

0 comments on commit 392ed53

Please sign in to comment.