Date Deploy #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will check flake style | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Date Deploy | |
on: | |
# push: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 2 * * 6' | |
jobs: | |
doc: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
strategy: | |
matrix: | |
python-version: [ 3.8 ] | |
services: | |
plantuml: | |
image: plantuml/plantuml-server:jetty-v1.2023.6 | |
ports: | |
- 18080:8080 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 20 | |
submodules: 'recursive' | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y make wget curl cloc graphviz pandoc | |
dot -V | |
python -m pip install -r requirements.txt | |
python -m pip install -r requirements-test.txt | |
- name: Generate | |
run: | | |
mkdir -p public | |
date > public/README.md | |
- name: Deploy to Github Page | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GIT_CONFIG_NAME: narugo1992 | |
GIT_CONFIG_EMAIL: [email protected] | |
BRANCH: date-keep # The branch the action should deploy to. | |
FOLDER: public # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |