Skip to content

Fixed build paths (#427) #3

Fixed build paths (#427)

Fixed build paths (#427) #3

Workflow file for this run

name: Release Version
on:
push:
tags:
- "v*"
jobs:
# Publish Python package to PyPI.
publish-to-pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/ephys-link
permissions:
id-token: write
steps:
- name: 🛎 Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"
- name: 📦 Install Hatch
uses: pypa/hatch@install
- name: 🔨 Build Package
run: hatch build
- name: 📦 Publish Distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# Build Windows executable and make release.
build-and-release:
name: Build Executable and Release
runs-on: windows-latest
steps:
- name: 🛎 Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"
- name: 📦 Install Hatch
uses: pypa/hatch@install
- name: 📥 Cache Build
uses: actions/cache@v4
with:
path: build
key: build-${{ runner.os }}
- name: 🔨 Build Executable
run: hatch run exe
- name: 🤐 Zip Build Folder
run: Compress-Archive -Path dist/EphysLink-${{ github.ref_name }} -DestinationPath dist/EphysLink-${{ github.ref_name }}.zip
- name: 📦 Make Release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref_name }}
# FIXME: Use correct name.
artifacts: "dist/EphysLink-${{ github.ref_name }}.zip,dist/EphysLink-${{ github.ref_name }}.exe"
artifactErrorsFailBuild: true
generateReleaseNotes: true
prerelease: ${{ contains(github.ref_name, "a") || contains(github.ref_name, "b") || contains(github.ref_name, "c") || contains(github.ref_name, "d") }}

Check failure on line 84 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release Version

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 84, Col: 23): Unexpected symbol: '"a"'. Located at position 27 within expression: contains(github.ref_name, "a") || contains(github.ref_name, "b") || contains(github.ref_name, "c") || contains(github.ref_name, "d")