-
Notifications
You must be signed in to change notification settings - Fork 45
37 lines (32 loc) · 1.1 KB
/
generate_maps.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
36
37
name: "regenerate all maps and upload"
on:
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: "Install python requirements"
run: |
python3 -m venv venv # Create virtual environment
source venv/bin/activate # Activate virtual environment
pip install -r requirements.txt # Install requirements
- name: "Build PR"
run: |
source venv/bin/activate
bash -x ./build.sh myoutdir
env:
PREVIOUS_COMMIT_PR: ${{ github.event.pull_request.base.sha }}
PREVIOUS_COMMIT: ${{ github.event.before }}
BUILD_MAPS: true
- name: "Deploy Push"
run: |
./deploy.sh myoutdir
env:
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}