Skip to content

Commit 2525540

Browse files
committed
Revert "workflow change"
This reverts commit 9816c98.
1 parent 9816c98 commit 2525540

1 file changed

Lines changed: 13 additions & 16 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ jobs:
2222
if: success() && !contains(fromJSON('["gh-pages", "firebase", "none"]'), env.TARGET)
2323
run: echo 'Invalid Deployment Target' && exit 1
2424

25+
# gh actions doesn't support using the 'env' context on job level ifs for
26+
# some reason smh. here we use outputs instead
2527
- name: set output to deploy target
2628
id: set-output
2729
run: echo "::set-output name=target::${{ env.TARGET }}"
2830

31+
# not sure if anyone wants this but I'm putting this here for those that don't
32+
# want to host their site. else the actions will show an annoying x whenever
33+
# you push to master
2934
deploy-none:
3035
runs-on: ubuntu-latest
3136
needs: set-deploy-type
@@ -37,30 +42,22 @@ jobs:
3742
runs-on: ubuntu-latest
3843
needs: set-deploy-type
3944
if: needs.set-deploy-type.outputs.target == 'gh-pages'
45+
4046
steps:
4147
- uses: actions/checkout@v4
4248

43-
- name: Set up Ruby
44-
uses: ruby/setup-ruby@v1
45-
with:
46-
bundler-cache: true
47-
48-
- name: Install dependencies
49-
run: bundle install
50-
51-
- name: Build Jekyll site
52-
run: bundle exec jekyll build
53-
54-
- name: Deploy to GitHub Pages
55-
uses: peaceiris/actions-gh-pages@v3
56-
with:
57-
github_token: ${{ secrets.GITHUB_TOKEN }}
58-
publish_dir: ./_site
49+
- name: Deploy Jekyll Site
50+
uses: sujaykundu777/jekyll-deploy-action@1.0.5
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
54+
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
5955

6056
deploy-firebase:
6157
runs-on: ubuntu-latest
6258
needs: set-deploy-type
6359
if: needs.set-deploy-type.outputs.target == 'firebase'
60+
6461
steps:
6562
- uses: actions/checkout@v4
6663

0 commit comments

Comments
 (0)