File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Jekyll with GitHub Pages dependencies preinstalled
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ paths :
7+ - " README.org"
8+
9+ workflow_dispatch :
10+
11+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
20+
21+ jobs :
22+ build :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+ - name : Install pandoc
28+ run : sudo apt-get update && sudo apt-get install -y pandoc
29+ - name : Convert Org to Markdown
30+ run : pandoc README.org -f org -t gfm -o index.md
31+ - name : Create Jekyll config
32+ run : |
33+ cat <<EOF > _config.yml
34+ title: codespaces.el
35+ description: Connect to GitHub Codespaces via TRAMP
36+ show_downloads: true
37+ theme: jekyll-theme-cayman
38+ EOF
39+ - name : Setup Pages
40+ uses : actions/configure-pages@v5
41+ - name : Build with Jekyll
42+ uses : actions/jekyll-build-pages@v1
43+ with :
44+ source : ./
45+ destination : ./_site
46+ - name : Upload artifact
47+ uses : actions/upload-pages-artifact@v3
48+
49+ deploy :
50+ environment :
51+ name : github-pages
52+ url : ${{ steps.deployment.outputs.page_url }}
53+ runs-on : ubuntu-latest
54+ needs : build
55+ steps :
56+ - name : Deploy to GitHub Pages
57+ id : deployment
58+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments