generated from AresSC2/ares-sc2-bot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 946 Bytes
/
ladder_zip.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
# check-out repo
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Checkout submodules
run: git submodule update --init --recursive
# install poetry
- name: Install poetry
run: pipx install poetry==1.6.1
# set-up python with cache
- name: Setup Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'
- name: Install requirements
run: poetry install --no-root
- name: Compile ladder zip
run: poetry run python scripts/create_ladder_zip.py
- uses: montudor/action-zip@v1
with:
args: unzip -qq bot.zip -d out
- uses: actions/upload-artifact@v3
with:
name: ladder-zip
path: out