-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (52 loc) · 1.61 KB
/
python-app.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Archive
on:
push:
branches: [ master ]
schedule:
- cron: "*/45 * * * *"
workflow_dispatch:
# parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install requirements
run: |
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -r .github/source/python-application/requirements.txt
- name: Import manifests
run: |
python3 --version
python3 .github/source/python-application/manifest.py
- name: Push manifest
run: |
git config --global user.name "fortarchive[bot]"
git config --global user.email "webfortcf@gmail.com"
git add .
# "echo" returns true so the build succeeds, even if no changed files
git commit -m "${{ env.version_build }} || echo
git push
- name: Make files
run: |
python3 --version
python3 .github/source/python-application/generation.py
- name: Push changes
run: |
git config --global user.name "fortarchive[bot]"
git config --global user.email "webfortcf@gmail.com"
git add .
# "echo" returns true so the build succeeds, even if no changed files
git commit -m "${{ env.version_build }} || echo
git push