Fix actions
Browse files
.github/workflows/{python-app.yml → heroku.yml}
RENAMED
@@ -1,6 +1,3 @@
|
|
1 |
-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
2 |
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
3 |
-
|
4 |
name: Deploy to Heroku
|
5 |
|
6 |
on:
|
@@ -8,29 +5,7 @@ on:
|
|
8 |
branches: [ main ]
|
9 |
|
10 |
jobs:
|
11 |
-
build:
|
12 |
-
|
13 |
-
runs-on: ubuntu-latest
|
14 |
-
|
15 |
-
steps:
|
16 |
-
- uses: actions/checkout@v2
|
17 |
-
- name: Set up Python 3.8
|
18 |
-
uses: actions/setup-python@v2
|
19 |
-
with:
|
20 |
-
python-version: 3.8
|
21 |
-
- name: Install dependencies
|
22 |
-
run: |
|
23 |
-
python -m pip install --upgrade pip
|
24 |
-
pip install pipreqs
|
25 |
-
- name: Update requirements.txt
|
26 |
-
run: pipreqs --print . | sort > requirements.txt
|
27 |
-
- name: git diff
|
28 |
-
run: git diff
|
29 |
-
- name: Check Git changes
|
30 |
-
run: test "$(git diff --stat)" = ""
|
31 |
-
|
32 |
deploy:
|
33 |
-
needs: [build]
|
34 |
runs-on: ubuntu-latest
|
35 |
steps:
|
36 |
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
|
1 |
name: Deploy to Heroku
|
2 |
|
3 |
on:
|
|
|
5 |
branches: [ main ]
|
6 |
|
7 |
jobs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
deploy:
|
|
|
9 |
runs-on: ubuntu-latest
|
10 |
steps:
|
11 |
- uses: actions/checkout@v2
|