Skip to content

[OBSIDIAN PUBLISHER] Merge #6 #68

[OBSIDIAN PUBLISHER] Merge #6

[OBSIDIAN PUBLISHER] Merge #6 #68

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages
on:
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Restore Timestamps
uses: chetan/git-restore-mtime-action@v1
- name: Set Timezone
uses: szenius/[email protected]
with:
timezoneLinux: "America/Los_Angeles"
# timezoneWindows: "Pacific Standard Time"
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
uses: actions/configure-pages@v3
# - name: Cache node modules
# id: cache-node-modules
# uses: actions/cache@v3
# with:
# path: node_modules
# key: ${{ runner.os }}-node-modules
# - uses: actions/setup-node@v3
# with:
# node-version: 18
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Dependencies
run: pip install -r requirements.txt
shell: bash
- name: Update chart
id: update_chart
run: python ./_doc_builder/contribute_image.py
shell: bash
- name: Update file name
id: update_file_name
run: python ./_doc_builder/update_file_name.py
shell: bash
- name: Update readme
id: update_readme
run: python ./_doc_builder/update_readme.py
shell: bash
- name: Update meta
id: update_meta
run: python ./_doc_builder/update_meta.py
shell: bash
- name: Build
uses: actions/jekyll-build-pages@v1
with:
verbose: true
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v1
# Deployment job
deploy:
if: ${{ !github.event.act }} # skip during local actions testing
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