Skip to content

fixed a minor issue #48

fixed a minor issue

fixed a minor issue #48

name: Deploy Jekyll with GitHub Pages
on:
push:
branches: ["master"]
release:
types: [released]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: master
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Setup site directory
run: mkdir ./docs/_site
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./docs/
destination: ./docs/_site
- name: Retrieve release information
run: ./docs/_bin/retrieve_release.sh
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
OUTPUT_FILE: ./docs/_site/release.json
- name: SEO treatment
run: cp docs/_seo/googleff749040537ff105.html docs/_site
- name: Upload artifact
uses: actions/Upload-Pages-Artifact@v2
with:
path: ./docs/_site/
# Deployment job
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@v2