Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Build and Deploy

Build and Deploy #678

Workflow file for this run

name: Build and Deploy
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Set up Python 3 🐍
uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
- name: Update PIP ✨
run: |
pip install -U wheel
pip install -U setuptools
python -m pip install -U pip
- name: Install requirements βš™οΈ
run: python -m pip install -r requirements.txt
- name: Execute main script πŸƒ
env:
PERSONAL_API_KEY: ${{ secrets.PERSONAL_API_KEY }}
run: python main.py
- name: Delete repos/ folder
run: rm -r repos
- name: Update README.md πŸ”„
run: |
if [[ "$(git status --porcelain)" != "" ]]; then
git config user.name "GitHub Action"
git config user.email "[email protected]"
git status
git add README.md
git commit -m "Update README.md"
git push
fi
- name: Deploy πŸš€
uses: JamesIves/[email protected]
with:
branch: translation_data
folder: for_deploy