Skip to content

Update build process to include tar.gz and whl file names #6

Update build process to include tar.gz and whl file names

Update build process to include tar.gz and whl file names #6

Workflow file for this run

name: On Push Tags
on:
push:
tags:
- "*.*.*"
jobs:
test:
uses: ./.github/workflows/pytest-workflow-call.yaml
static-type-check:
uses: ./.github/workflows/static-type-check-workflow-call.yaml

Check failure on line 12 in .github/workflows/on_push_tags.yaml

View workflow run for this annotation

GitHub Actions / On Push Tags

Invalid workflow file

error parsing called workflow ".github/workflows/on_push_tags.yaml" -> "./.github/workflows/static-type-check-workflow-call.yaml" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
code-style-check:
uses: ./.github/workflows/code-style-check-workflow-call.yaml
validate-version:
uses: ./.github/workflows/validate-version-workflow-call.yaml
deploy:
needs: [test, static-type-check, code-style-check, validate-version]
runs-on: windows-latest
env:
PRIVATE_REPO_USER: "hmasdev"
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
- name: Build
run: |
python setup.py sdist bdist_wheel
$TARGZNAME = (Get-ChildItem -Name .\dist\*.tar.gz)
$WHLNAME = (Get-ChildItem -Name .\dist\*.whl)
echo "TARGZNAME=$TARGZNAME" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "WHLNAME=$WHLNAME" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Release
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Publish tar.gz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: dist\${{ TARGZNAME }}

Check failure on line 63 in .github/workflows/on_push_tags.yaml

View workflow run for this annotation

GitHub Actions / On Push Tags

Invalid workflow file

The workflow is not valid. .github/workflows/on_push_tags.yaml (Line: 63, Col: 23): Unrecognized named-value: 'TARGZNAME'. Located at position 1 within expression: TARGZNAME .github/workflows/on_push_tags.yaml (Line: 64, Col: 23): Unrecognized named-value: 'TARGZNAME'. Located at position 1 within expression: TARGZNAME
asset_name: ${{ TARGZNAME }}
asset_content_type: application/gzip
- name: Publish .whl
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: dist\${{ WHLNAME }}
asset_name: ${{ WHLNAME }}
asset_content_type: application/zip