mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-23 23:53:10 +08:00
63 lines
1.3 KiB
YAML
63 lines
1.3 KiB
YAML
name: Org and Jekyll
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
|
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 30
|
|
fetch-tags: true
|
|
|
|
- name: Install Emacs
|
|
uses: purcell/setup-emacs@master
|
|
with:
|
|
version: 29.3
|
|
|
|
- name: make
|
|
run: |
|
|
sudo apt-get -q install pandoc
|
|
make
|
|
curl "https://raw.githubusercontent.com/dongdigua/configs/main/.tmux.conf" -o misc/tmux.conf
|
|
./patches/txt.sh
|
|
./patches/color.sh
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v5
|
|
|
|
- name: Build with Jekyll
|
|
uses: actions/jekyll-build-pages@v1
|
|
with:
|
|
source: ./
|
|
destination: ./_site
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|
|
|