-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.73 KB
/
python-app.yml
File metadata and controls
53 lines (50 loc) · 1.73 KB
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
# This workflow will install Python dependencies and run the script gh_issues to generated a new repot
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Create GitHub Issues Report
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Create artifact folder and copy index.html there
run: |
mkdir build_outputs_folder |
cp ./index.html build_outputs_folder/index.html
- name: Create a new GitHub issues report, sorted by days
run: |
python gh_issues.py -s days,user -f -a -t build_outputs_folder/report_days.html
- name: Create a new GitHub issues report, sorted by user
run: |
python gh_issues.py -s user,days -f -a -t build_outputs_folder/report_user.html
- name: Upload artifact folder to GitHub Pages
# See https://github.com/actions/upload-pages-artifact
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: build_outputs_folder/
# See https://github.com/actions/deploy-pages
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4