Skip to content

Commit

Permalink
1st commit
Browse files Browse the repository at this point in the history
  • Loading branch information
myname committed Oct 16, 2023
1 parent 0674d2f commit f0d6aeb
Show file tree
Hide file tree
Showing 62 changed files with 164 additions and 5,575 deletions.
24 changes: 0 additions & 24 deletions .github/dependabot.yml

This file was deleted.

114 changes: 57 additions & 57 deletions .github/workflows/cd-prod.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
name: cd-prod

on:
workflow_dispatch:
push:
branches:
- master

env:
PUBLISH_BRANCH: pycourse-page-prod

jobs:

deploy:
runs-on: ubuntu-latest
timeout-minutes: 4

steps:

- name: checkout code
uses: actions/checkout@v4

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'

- name: caching
uses: actions/cache@v3
with:
key: ${{ github.ref }}
path: .cache

- name: install deps
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: image processing deps
run: |
sudo pip install pillow cairosvg
sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
sudo apt-get install pngquant
- name: deploy mkdocs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
run: mkdocs build -v

- name: update publish dir to build branch
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: ${{ env.PUBLISH_BRANCH }}
publish_dir: ./site
# name: cd-prod

# on:
# workflow_dispatch:
# push:
# branches:
# - master

# env:
# PUBLISH_BRANCH: pycourse-page-prod

# jobs:

# deploy:
# runs-on: ubuntu-latest
# timeout-minutes: 4

# steps:

# - name: checkout code
# uses: actions/checkout@v4

# - name: setup python
# uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# cache: 'pip'

# - name: caching
# uses: actions/cache@v3
# with:
# key: ${{ github.ref }}
# path: .cache

# - name: install deps
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt

# - name: image processing deps
# run: |
# sudo pip install pillow cairosvg
# sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
# sudo apt-get install pngquant

# - name: deploy mkdocs
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
# run: mkdocs build -v

# - name: update publish dir to build branch
# uses: peaceiris/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_branch: ${{ env.PUBLISH_BRANCH }}
# publish_dir: ./site
118 changes: 59 additions & 59 deletions .github/workflows/cd-stage.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
name: cd-stage

on:
workflow_dispatch:
push:
branches:
- 'dependabot/**'

env:
PUBLISH_BRANCH: pycourse-page-stage

jobs:

deploy:
runs-on: ubuntu-latest
timeout-minutes: 4
permissions:
contents: write
environment:
name: pycourse-page-stage
url: https://pycourse-page-stage.netlify.app/

steps:

- name: checkout code
uses: actions/checkout@v4

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'

- name: caching
uses: actions/cache@v3
with:
key: ${{ github.ref }}
path: .cache

- name: install deps
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: image processing deps
run: |
sudo pip install pillow cairosvg
sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
sudo apt-get install pngquant
- name: deploy mkdocs
run: mkdocs build -v

- name: update publish dir to build branch
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: ${{ env.PUBLISH_BRANCH }}
publish_dir: ./site
# name: cd-stage

# on:
# workflow_dispatch:
# push:
# branches:
# - 'dependabot/**'

# env:
# PUBLISH_BRANCH: pycourse-page-stage

# jobs:

# deploy:
# runs-on: ubuntu-latest
# timeout-minutes: 4
# permissions:
# contents: write
# environment:
# name: pycourse-page-stage
# url: https://pycourse-page-stage.netlify.app/

# steps:

# - name: checkout code
# uses: actions/checkout@v4

# - name: setup python
# uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# cache: 'pip'

# - name: caching
# uses: actions/cache@v3
# with:
# key: ${{ github.ref }}
# path: .cache

# - name: install deps
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt

# - name: image processing deps
# run: |
# sudo pip install pillow cairosvg
# sudo apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
# sudo apt-get install pngquant

# - name: deploy mkdocs
# run: mkdocs build -v

# - name: update publish dir to build branch
# uses: peaceiris/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_branch: ${{ env.PUBLISH_BRANCH }}
# publish_dir: ./site
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: set up py3.8
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
cache: 'pip'

- name: run pre-commit action
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/codeql.yml

This file was deleted.

Loading

0 comments on commit f0d6aeb

Please sign in to comment.