Skip to content

Commit 23a86b6

Browse files
authored
Update jekyll-build.yml
1 parent dfe1be4 commit 23a86b6

File tree

1 file changed

+4
-41
lines changed

1 file changed

+4
-41
lines changed

.github/workflows/jekyll-build.yml

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GH Pages CI
1+
name: GitHub to Vercel
22

33
on:
44
push:
@@ -9,45 +9,8 @@ on:
99

1010
jobs:
1111
build-deploy:
12-
runs-on: ubuntu-16.04
12+
runs-on: ubuntu-latest
1313
steps:
14-
- name: Clone Jekyll Repo
15-
# You may pin to the exact commit or the version.
16-
# uses: GuillaumeFalourd/clone-github-repo-action@d667f8c39e6ac1dd5309ad51b0020657c7a1a296
17-
uses: GuillaumeFalourd/clone-github-repo-action@v1
18-
with:
19-
# Repository Owner
20-
owner: JimmyLv
21-
# Repository name
22-
repository: jekyll-blog
23-
- name: Clone _posts Repo
24-
# You may pin to the exact commit or the version.
25-
# uses: GuillaumeFalourd/clone-github-repo-action@d667f8c39e6ac1dd5309ad51b0020657c7a1a296
26-
uses: GuillaumeFalourd/clone-github-repo-action@v1
27-
with:
28-
# Repository Owner
29-
owner: JimmyLv
30-
# Repository name
31-
repository: jimmylv.github.io
32-
- name: Show Files
14+
- name: Trigger Deployment Hook
3315
run: |
34-
pwd
35-
ls
36-
- name: Move Files
37-
run: |
38-
sudo cp -rf jimmylv.github.io/**/** jekyll-blog/_posts
39-
export LC_ALL=en_US.UTF-8
40-
export LANG=en_US.UTF-8
41-
42-
- name: Get cached gems
43-
uses: actions/cache@v2
44-
with:
45-
path: vendor/bundle
46-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
47-
restore-keys: |
48-
${{ runner.os }}-gems-
49-
- name: Build and deploy
50-
uses: helaili/jekyll-action@v2
51-
with:
52-
jekyll_src: 'jekyll-blog'
53-
token: ${{ secrets.GITHUB_TOKEN }}
16+
curl -X POST https://api.vercel.com/v1/integrations/deploy/prj_5WIsNe13IMQbqbCPpKZW2DwufCRI/qRo2PAJ9u3

0 commit comments

Comments
 (0)