Skip to content

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

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

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

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

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

View workflow run for this annotation

GitHub Actions / .github/workflows/create_release.yml

Invalid workflow file

You have an error in your yaml syntax on line 35
- name: Create Release
id: create_release
run: |
# scripts/create_release.py || exit 1
response_get_last_tag=$(python scripts/create_release.py)
echo "response_get_last_tag=$response_get_last_tag" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
continue-on-error: false
- name: Print response status code
run: |
echo "Response Status Code: $response_get_last_tag"
# - 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