Skip to content

Commit

Permalink
Trying a different approach using enviroments
Browse files Browse the repository at this point in the history
  • Loading branch information
janhalen committed Aug 13, 2024
1 parent 3c3c985 commit cf2383d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Jekyll site to Pages (Testing)
name: Deploy Jekyll site to Pages

on:
push:
Expand Down Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
ruby-version: '3.1'
bundler-cache: true
cache-version: 0
- name: Setup Pages
Expand All @@ -42,11 +42,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'testing' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
branch: ${{ github.ref == 'refs/heads/main' && 'gh-pages' || 'gh-pages-testing' }}

0 comments on commit cf2383d

Please sign in to comment.