Skip to content

Commit

Permalink
Merge pull request #111 from screwdriver-cd/create-publish-artifact
Browse files Browse the repository at this point in the history
chore: publish the guide as an artifact
  • Loading branch information
FenrirUnbound authored Sep 29, 2017
2 parents e644f4d + 6bb801c commit ad361e9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
workflow:
- publish
- deploy

shared:
Expand All @@ -10,6 +11,20 @@ jobs:
- bundle_install: bundle install
- build: bundle exec jekyll build --source docs --destination _site

publish:
environment:
RELEASE_FILE: guide.tgz
secrets:
- GIT_KEY
- GITHUB_TOKEN
steps:
- setup-ci: git clone https://gist.github.com/3d2388b2a7ba658cdcdaffa8cd874e50.git ci
- install: bundle install
- build: bundle exec jekyll build --source docs --destination _site
- package: tar -C _site -cvzf $RELEASE_FILE .
- tag: ./ci/git-tag.sh
- publish: ./ci/git-release.sh

deploy:
steps:
- setup-ci: git clone https://gist.github.com/3d2388b2a7ba658cdcdaffa8cd874e50.git ci
Expand Down

0 comments on commit ad361e9

Please sign in to comment.