Skip to content

Update static

Update static #68

Workflow file for this run

name: Deploy static content to Pages
on:
workflow_dispatch:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
push:
branches:
- master
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build_and_deploy:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
USER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: pip
cache-dependency-path: "requirements.txt"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Generate content
run: |
source venv/bin/activate
python generate.py ${{ secrets.BLOG_KEY }} ${{ github.repository }}
- name: Update theme
run: |
git submodule update --init --recursive
- name: Build and deploy
uses: shalzz/[email protected]
env:
BUILD_DIR: .
PAGES_BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.BLOG_KEY }}
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2