Skip to content

Commit

Permalink
Merge pull request #402 from smallrye/fix-website-deploy-ci
Browse files Browse the repository at this point in the history
Fix the website deployment
  • Loading branch information
jponge authored Dec 16, 2020
2 parents 628937e + cec5545 commit f0ac91d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .build/deploy-site.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
echo "🚧 Building..."
cd documentation || exit 1
mvn clean test && cd src/main/jekyll && bundle install && JEKYLL_ENV=production bundle exec jekyll build && cd - || exit 1
mvn clean test && cd src/main/jekyll && gem install bundler && bundle install && JEKYLL_ENV=production bundle exec jekyll build && cd - || exit 1
echo "🍺 Site generated in 'target/_site'"

echo "🚧 Cloning web site in target/site"
Expand Down
3 changes: 0 additions & 3 deletions .build/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ deploy_release() {

echo "Deploying release artifacts"
mvn -B clean deploy -DskipTests -Prelease -s maven-settings.xml

echo "Deploying documentation"
.build/deploy-site.sh
}

init_git
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:
.build/deploy.sh ${{ github.event.deployment.environment }}
- name: 'Setup Ruby'
uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'

- name: 'Deploy the website'
run: .build/deploy-site.sh

- name: update deploy status
if: always()
uses: unacast/[email protected]
Expand Down

0 comments on commit f0ac91d

Please sign in to comment.