diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b58b55..6ba2fbf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,6 +74,7 @@ jobs: run: | twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} --skip-existing - name: Update Release + if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all_incl_release"]'), github.event.inputs.build-items)) }} uses: actions/gitea-release-action@v1 with: files: |- @@ -99,11 +100,11 @@ jobs: # pyinstaller windows_build.spec # cd dist\eos # Compress-Archive -Path .\* -Destination ..\..\eos.zip -# - name: Archive distribution -# uses: actions/upload-artifact@v3 +# - name: Update Release +# if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all_incl_release"]'), github.event.inputs.build-items)) }} +# uses: actions/gitea-release-action@v1 # with: -# name: windows-dist -# path: | +# files: |- # eos.zip release: @@ -111,5 +112,14 @@ jobs: runs-on: ubuntu-latest needs: [test] steps: + - uses: actions/checkout@v4 + - name: get latest version tag and release note + run: | + echo "RELEASE_TAG=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV + echo "RELEASE_NOTE='This is a test note.'" >> $GITHUB_ENV - name: Create Release uses: actions/gitea-release-action@v1 + with: + tag_name: ${{ env.RELEASE_TAG }} + prerelease: true + body: ${{ env.RELEASE_NOTE }}