Skip to content

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

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

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

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 }}"

Check failure on line 45 in .github/workflows/create_release.yml

View workflow run for this annotation

GitHub Actions / Upload Release Asset

Invalid workflow file

The workflow is not valid. .github/workflows/create_release.yml (Line: 45, Col: 9): A mapping was not expected
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