Skip to content

Commit

Permalink
ci: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
maehr authored Apr 22, 2024
1 parent 14c7087 commit badd18f
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,29 @@ jobs:
uses: actions/configure-pages@v5

- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
run: bundle exec jekyll build --destination _site/${{ matrix.lang }} --baseurl "${{ steps.pages.outputs.base_path }}/${{ matrix.lang }}"
env:
JEKYLL_ENV: production

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
path: ./_site/${{ matrix.lang }}
name: site-${{ matrix.lang }}

deploy:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
lang: ['en', 'de', 'es']
environment:
name: github-pages-${{ matrix.lang }}
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download artifact
- name: Checkout
uses: actions/checkout@v4

- name: Download all artifacts
uses: actions/download-artifact@v4
with:
name: site-${{ matrix.lang }}
path: _site

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: site-${{ matrix.lang }}
path: _site

0 comments on commit badd18f

Please sign in to comment.