Skip to content

Commit 7417da0

Browse files
committed
add
1 parent 7224b42 commit 7417da0

1 file changed

Lines changed: 9 additions & 27 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
name: "Deploy"
1+
name: Deploy
2+
23
on:
34
push:
4-
branches:
5-
- main
5+
branches: ["main"]
66
paths-ignore:
77
- .gitignore
88
- README.md
99
- LICENSE
10-
1110
workflow_dispatch:
1211

1312
permissions:
@@ -16,55 +15,38 @@ permissions:
1615
id-token: write
1716

1817
concurrency:
19-
group: "deploy"
20-
cancel-in-progress: true
18+
group: "pages"
19+
cancel-in-progress: false
2120

2221
jobs:
2322
build:
2423
runs-on: ubuntu-latest
2524
strategy:
2625
matrix:
2726
ruby: ["3.2"]
28-
2927
steps:
3028
- name: Checkout
31-
uses: actions/checkout@v3
32-
with:
33-
fetch-depth: 0
29+
uses: actions/checkout@v4
3430
- name: Setup Pages
3531
id: pages
36-
uses: actions/configure-pages@v3
37-
32+
uses: actions/configure-pages@v5
3833
- name: Setup Ruby
3934
uses: ruby/setup-ruby@v1
4035
with:
4136
ruby-version: ${{ matrix.ruby }}
4237
bundler-cache: true
43-
4438
- name: Build site
4539
run: bundle exec jekyll b --verbose --config=_config.yml,_config.prod.yml -d "_site"
4640
env:
4741
JEKYLL_ENV: "production"
48-
49-
- name: Deploy to build branch
50-
uses: peaceiris/actions-gh-pages@v3
51-
with:
52-
github_token: ${{ secrets.GITHUB_TOKEN }}
53-
publish_dir: "_site"
54-
publish_branch: build
55-
user_name: 'github-actions[bot]'
56-
user_email: 'github-actions[bot]@users.noreply.github.com'
57-
5842
- name: Test site
5943
run: |
6044
bundle exec htmlproofer _site \
6145
\-\-disable-external=true \
6246
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
6347
64-
- name: Upload site artifact
48+
- name: Upload artifact
6549
uses: actions/upload-pages-artifact@v3
66-
with:
67-
path: "_site"
6850

6951
deploy:
7052
environment:
@@ -78,4 +60,4 @@ jobs:
7860
echo "CNAME=vprog.hu" >> $GITHUB_ENV
7961
- name: Deploy to GitHub Pages
8062
id: deployment
81-
uses: actions/deploy-pages@v2
63+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)