Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AriBunnell authored Oct 13, 2024
1 parent d185d4c commit a990bbc
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,36 @@ jobs:
# Install Bundler and cache gems in the user's local directory
- name: Install Bundler
run: |
source ~/.bashrc
gem install bundler --user-install
echo 'export PATH="$HOME/.local/share/gem/ruby/3.2.0/bin:$PATH"' >> ~/.bashrc
export PATH="$HOME/.local/share/gem/ruby/3.2.0/bin:$PATH"
echo 'export PATH="$HOME/.local/share/gem/ruby/3.1.4/bin:$PATH"' >> ~/.bashrc
export PATH="$HOME/.local/share/gem/ruby/3.1.4/bin:$PATH"
bundle config set path 'vendor/bundle'
bundle install
- name: Setup Pages
id: pages
uses:
uses: actions/configure-pages@v4

- name: Build with Jekyll
run: |
source ~/.bashrc
export PATH="$HOME/.local/share/gem/ruby/3.1.4/bin:$PATH"
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production

- name: Upload artifact
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 a990bbc

Please sign in to comment.