Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Neo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NeuralEnsemble
Neo
Commits
e8f0b12f
Unverified
Commit
e8f0b12f
authored
1 year ago
by
Garcia Samuel
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1380 from alejoe91/release-actions
Retrieve correct tag in test pypi action
parents
340bbdcb
9dddaa37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/publish-to-pypi-test.yml
+9
-1
9 additions, 1 deletion
.github/workflows/publish-to-pypi-test.yml
with
9 additions
and
1 deletion
.github/workflows/publish-to-pypi-test.yml
+
9
−
1
View file @
e8f0b12f
...
@@ -20,11 +20,19 @@ jobs:
...
@@ -20,11 +20,19 @@ jobs:
python -m pip install --upgrade pip
python -m pip install --upgrade pip
pip install setuptools wheel twine build
pip install setuptools wheel twine build
pip install .
pip install .
-
name
:
Get the tag version
id
:
get-version
run
:
|
echo ${GITHUB_REF#refs/tags/}
echo "TAG::${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
-
name
:
Test version/tag correspondence
-
name
:
Test version/tag correspondence
id
:
version-check
id
:
version-check
run
:
|
run
:
|
neo_version=$(python -c "import neo; print(neo.__version__)")
neo_version=$(python -c "import neo; print(neo.__version__)")
if [[ ${{ github.event.release.tag_name }} == $neo_version ]]; then
tag_version=${{ steps.get-version.outputs.TAG }}
echo $neo_version
echo $tag_version
if [[ $tag_version == $neo_version ]]; then
echo "VERSION_TAG_MATCH=true" >> $GITHUB_OUTPUT
echo "VERSION_TAG_MATCH=true" >> $GITHUB_OUTPUT
echo "Version matches tag, proceeding with release to Test PyPI"
echo "Version matches tag, proceeding with release to Test PyPI"
else
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment