Skip to content

Commit b873113

Browse files
committed
Deploy to GitHub Pages
1 parent ecde361 commit b873113

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

.github/workflows/ci.yml

+27-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Zola
22

33
on:
44
push:
5-
branches: source
5+
branches: redesign
66
pull_request:
77

88
jobs:
@@ -29,11 +29,11 @@ jobs:
2929
fi
3030
echo "changed_files: $changed_files"
3131
echo "changed_files=$changed_files" >> $GITHUB_OUTPUT
32-
- name: Lint
33-
uses: avto-dev/markdown-lint@v1
34-
with:
35-
args: '.'
36-
config: '.markdownlint.json'
32+
# - name: Lint
33+
# uses: avto-dev/markdown-lint@v1
34+
# with:
35+
# args: '.'
36+
# config: '.markdownlint.json'
3737
- name: Check links
3838
uses: lycheeverse/[email protected]
3939
if: ${{ steps.changed-files.outputs.changed_files != '' }}
@@ -56,9 +56,25 @@ jobs:
5656
echo "Zola version: $(./zola --version)"
5757
- name: Zola build
5858
run: ./zola build
59-
- name: Deploy
60-
if: github.ref == 'refs/heads/source'
61-
uses: crazy-max/ghaction-github-pages@v1
59+
- name: Upload GitHub Pages Artifact
60+
uses: actions/upload-pages-artifact@v3
6261
with:
63-
build_dir: public
64-
target_branch: master
62+
path: public/
63+
64+
deploy_pages:
65+
needs: zola
66+
if: github.ref_name == 'redesign'
67+
68+
permissions:
69+
pages: write
70+
id-token: write
71+
72+
environment:
73+
name: github-pages
74+
url: ${{ steps.deployment.outputs.page_url }}
75+
76+
runs-on: ubuntu-24.04
77+
steps:
78+
- name: Deploy to GitHub Pages
79+
id: deployment
80+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)