Skip to content

Edited: flake8.yml, pytest.yml. Created: create_release.yml, scripts … #62

Edited: flake8.yml, pytest.yml. Created: create_release.yml, scripts …

Edited: flake8.yml, pytest.yml. Created: create_release.yml, scripts … #62

name: Upload Release Asset
on:
push:
branches:
- master
workflow_run:
workflows:
- "tests.yml"
types:
- completed
jobs:
build-project:
name: Upload Release Asset
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install requests
- name: Build zip file
run: scripts/build_zip_file.py
- name: Create Release
id: create_release
run: |
scripts/create_release.py || exit 1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
continue-on-error: false
- name: Print response status code
run: |
echo "Response Status Code: ${{ steps.create_release.outputs.status_code }}"
# - name: Create and Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.TOKEN }}
# UPLOAD_URL: ${{ steps.create_release.outputs.upload_url }}
# with:
# upload_url: ${{ env.UPLOAD_URL }}
# asset_path: ./Overwatch Rank Tracker.zip
# asset_name: Overwatch Rank Tracker.zip
# asset_content_type: application/zip