Skip to content

Commit 2a29dfb

Browse files
authored
Update jekyll-gh-pages.yml
1 parent b929d7b commit 2a29dfb

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
1+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
12
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
23

34
on:
5+
# Runs on pushes targeting the default branch
46
push:
57
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
610
workflow_dispatch:
711

12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
813
permissions:
914
contents: read
1015
pages: write
1116
id-token: write
1217

18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1320
concurrency:
1421
group: "pages"
1522
cancel-in-progress: false
1623

1724
jobs:
25+
# Build job
1826
build:
1927
runs-on: ubuntu-latest
2028
steps:
2129
- name: Checkout
2230
uses: actions/checkout@v3
23-
2431
- name: Setup Pages
2532
uses: actions/configure-pages@v3
26-
2733
- name: Build with Jekyll
2834
uses: actions/jekyll-build-pages@v1
2935
with:
3036
source: ./
3137
destination: ./_site
32-
3338
- name: Upload artifact
34-
uses: actions/upload-pages-artifact@v3
35-
with:
36-
path: ./_site
37-
name: github-pages # <- necesario para deploy
39+
uses: actions/upload-pages-artifact@v2
3840

41+
# Deployment job
3942
deploy:
4043
environment:
4144
name: github-pages

0 commit comments

Comments
 (0)