Fetch Res #12
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
name: Fetch Res | |
on: | |
workflow_dispatch: ~ | |
jobs: | |
Fetch-Wiki: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@master | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.19.0' | |
- name: Install Dependencies | |
run: | | |
python -m pip install virtualenv pdm | |
python -m virtualenv venv | |
pdm use venv | |
source venv/bin/activate | |
pdm install -G :all | |
- name: Fetch Remote Files | |
run: | | |
source venv/bin/activate | |
cd compiler | |
python main.py | |
cd hsr-optimizer-api | |
npm install -g pnpm | |
pnpm install | |
npm run build | |
cd ../.. | |
black . | |
- name: Test New files | |
run: | | |
source venv/bin/activate | |
pytest | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Commit changes | |
run: | | |
git add . | |
git commit -S -m ":bento: Update res" | |
git push |