File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Quarto Blog
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ build :
15+ name : Check & Preview Build
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : Check out repository
20+ uses : actions/checkout@v3
21+
22+ - name : Set up Quarto
23+ uses : quarto-dev/quarto-actions/setup@v2
24+
25+ - name : Install R (minimal)
26+ uses : r-lib/actions/setup-r@v2
27+ with :
28+ use-public-rspm : true
29+
30+ - name : Render site (with code freeze)
31+ run : quarto check && quarto render
32+
33+ - name : Install xmllint
34+ run : sudo apt-get update && sudo apt-get install -y libxml2-utils
35+
36+ - name : Validate RSS feed
37+ run : |
38+ if [ -f _site/index.xml ]; then
39+ xmllint --noout _site/index.xml
40+ else
41+ echo "RSS feed not found!" && exit 1
42+ fi
43+
44+ deploy :
45+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
46+ name : Publish to GitHub Pages
47+ needs : build
48+ runs-on : ubuntu-latest
49+ permissions :
50+ contents : write
51+
52+ steps :
53+ - name : Check out repository
54+ uses : actions/checkout@v3
55+
56+ - name : Set up Quarto
57+ uses : quarto-dev/quarto-actions/setup@v2
58+
59+ - name : Publish
60+ uses : quarto-dev/quarto-actions/publish@v2
61+ with :
62+ target : gh-pages
63+ env :
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments