Edited: flake8.yml, pytest.yml. Created: create_release.yml, scripts … #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
- name: Display Response Status Code | ||
run: | ||
echo "Status Code from Python Script: ${{ steps.your_script.outputs.status_code }}" | ||
if: always() # Это позволит выполнить этот шаг даже при ошибке в предыдущем | ||
# - 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 |