11# This workflow will install Python dependencies and run the script gh_issues to generated a new repot
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33
4- name : Python application
4+ name : Create GitHub Issues Report
55
66on :
77 workflow_dispatch :
@@ -21,18 +21,22 @@ jobs:
2121 run : |
2222 python -m pip install --upgrade pip
2323 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
24+ - name : Create artifact folder and copy index.html there
25+ run : |
26+ mkdir build_outputs_folder |
27+ cp ./index.html build_outputs_folder/index.html
2428 - name : Create a new GitHub issues report, sorted by days
2529 run : |
26- python gh_issues.py -s days,user -f -a -n -t report_days.html
30+ python gh_issues.py -s days,user -f -a -n -t build_outputs_folder/ report_days.html
2731 - name : Create a new GitHub issues report, sorted by user
2832 run : |
29- python gh_issues.py -s user,days -f -a -n -t report_user.html
30- - name : Upload *.html as artifacts
33+ python gh_issues.py -s user,days -f -a -n -t build_outputs_folder/ report_user.html
34+ - name : Upload artifact folder to GitHub Pages
3135 # See https://github.com/actions/upload-pages-artifact
3236 uses : actions/upload-pages-artifact@v3
3337 with :
3438 name : github-pages
35- path : ./*.html
39+ path : build_outputs_folder/
3640 # See https://github.com/actions/deploy-pages
3741 deploy :
3842 runs-on : ubuntu-latest
0 commit comments