move release first and readd tag_name
All checks were successful
Unit Testing / test (3.10) (pull_request) Successful in 51s
Unit Testing / test (3.12) (pull_request) Successful in 51s
Unit Testing / test (3.11) (pull_request) Successful in 55s
Unit Testing / test (3.8) (pull_request) Successful in 56s
Unit Testing / test (3.9) (pull_request) Successful in 57s

This commit is contained in:
2026-03-02 10:56:35 +01:00
parent 453ab19a42
commit 616ed44dfe

View File

@@ -49,6 +49,28 @@ jobs:
export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
python -m pytest tests
release:
if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all_incl_release"]'), github.event.inputs.build-items)) }}
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
- name: get latest version tag and release note
run: |
git fetch --depth=500
this_tag=$(python -c "import eos;print('v'+eos.__version__)")
prev_tag=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
echo "Relese tag $this_tag with changes since $prev_tag"
commit_messages=$(git log $prev_tag..HEAD --pretty=format:"* %s")
echo "Commit messages: $commit_messages"
echo "RELEASE_TAG=$this_tag" >> $GITHUB_ENV
echo "RELEASE_NOTE=$commit_messages" >> $GITHUB_ENV
- name: Create Release
uses: actions/gitea-release-action@v1
with:
name: "Amor-Eos ${{ env.RELEASE_TAG }}"
tag_name: ${{ env.RELEASE_TAG }}
#body: ${{ env.RELEASE_NOTE }}
build-ubuntu-latest:
needs: [test]
@@ -110,26 +132,3 @@ jobs:
# with:
# files: |-
# eos.zip
release:
if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all_incl_release"]'), github.event.inputs.build-items)) }}
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
- name: get latest version tag and release note
run: |
git fetch --depth=500
this_tag=$(python -c "import eos;print('v'+eos.__version__)")
prev_tag=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
echo "Relese tag $this_tag with changes since $prev_tag"
commit_messages=$(git log $prev_tag..HEAD --pretty=format:"* %s")
echo "Commit messages: $commit_messages"
echo "RELEASE_TAG=$this_tag" >> $GITHUB_ENV
echo "RELEASE_NOTE=$commit_messages" >> $GITHUB_ENV
- name: Create Release
uses: actions/gitea-release-action@v1
with:
name: "Amor-Eos ${{ env.RELEASE_TAG }}"
#tag_name: ${{ env.RELEASE_TAG }}
#body: ${{ env.RELEASE_NOTE }}