Skip to content

Commit

Permalink
Replace shell run with github action
Browse files Browse the repository at this point in the history
  • Loading branch information
nntrn committed Feb 27, 2024
1 parent 6898920 commit 0969a46
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,28 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
- run: ./scripts/build-data.sh --remote
- uses: ruby/setup-ruby@v1
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
ruby-version: "2.7.1"
bundler-cache: true
- run: bundle exec jekyll build -d docs -s .
source: ./
destination: ./_site
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 0969a46

Please sign in to comment.