Skip to content

Commit 038c853

Browse files
Merge pull request #13 from luckalgorithm/luckalgorithm-patch-1
Testing
2 parents 4a813a4 + bbae01a commit 038c853

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: Build and Deploy Jekyll Site
1+
name: Build and Deploy to GitHub Pages
22

33
on:
4-
push:
5-
branches: [main]
64
workflow_dispatch:
75

86
permissions:
@@ -15,38 +13,38 @@ jobs:
1513
runs-on: ubuntu-latest
1614

1715
steps:
18-
- name: Checkout repo
16+
- name: Checkout code
1917
uses: actions/checkout@v3
2018

21-
- name: Setup Ruby
19+
- name: Set up Ruby
2220
uses: ruby/setup-ruby@v1
2321
with:
2422
ruby-version: '3.1'
25-
26-
- name: Install Jekyll and build site
23+
24+
- name: Install Jekyll and Bundler
2725
run: |
2826
gem install bundler jekyll
29-
bundle init
30-
echo 'gem "jekyll"' >> Gemfile
3127
bundle install
32-
bundle exec jekyll new . --force
28+
29+
- name: Build the site
30+
run: |
3331
bundle exec jekyll build
3432
35-
- name: Upload Pages artifact manually
36-
uses: actions/upload-artifact@v3
33+
- name: Upload site to GitHub Pages
34+
uses: actions/upload-pages-artifact@v2
3735
with:
38-
name: github-pages
3936
path: ./_site
4037

4138
deploy:
4239
needs: build
4340
runs-on: ubuntu-latest
4441
environment:
4542
name: github-pages
43+
4644
steps:
4745
- name: Deploy to GitHub Pages
48-
id: deployment
4946
uses: actions/deploy-pages@v2
5047

5148

5249

50+

0 commit comments

Comments
 (0)