Skip to content

Update GitHub Actions workflows to use latest stable action versions … #38

Update GitHub Actions workflows to use latest stable action versions …

Update GitHub Actions workflows to use latest stable action versions … #38

Workflow file for this run

name: Build Wheel
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.9'
- name: Set Branch Name
run: |
echo "branch_name=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV
- name: Check Branch
run: echo "$env.branch_name"
- name: Get Hash
id: hash
run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV
- name: Build wheel
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
python setup.py bdist_wheel --universal
- name: Upload Wheel Artifact
uses: actions/upload-artifact@v6
with:
name: vecto-wheel-${{ env.branch_name }}-${{ env.git_hash }}
path: dist/*.whl
- name: Upload Dist Directory Artifact
uses: actions/upload-artifact@v6
with:
name: dist-${{ env.branch_name }}-${{ env.git_hash }}
path: dist/