Skip to content

Commit

Permalink
Changing to actions/release
Browse files Browse the repository at this point in the history
Changing to defaults (test)
  • Loading branch information
gbladislau committed Dec 26, 2024
1 parent f1af1dd commit 191c52b
Showing 1 changed file with 35 additions and 12 deletions.
47 changes: 35 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,40 @@ jobs:
echo "name=$EXE_NAME" >> $GITHUB_ENV
if: matrix.install_variant != 'pip'

- name: Create Release and Push Artifacts
uses: ncipollo/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Create Release and Push Artifacts
# uses: ncipollo/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# name: 'guibot ${{ env.version }}'
# tag: "${{ env.version }}"
# body: 'Auto generated release builds'
# artifacts: '/home/runner/work/guibot/guibot/${{ env.name }}_${{ env.version }}.${{ env.ext }}'
# updateOnlyUnreleased: 'false'
# allowUpdates: 'true'
# prerelease: 'false'
# makeLatest: 'true'
# if: matrix.install_variant != 'pip'

- name: Create the Release
uses: actions/create-release@v1
id: create_release
with:
name: 'guibot ${{ env.version }}'
tag: "${{ env.version }}"
body: 'Auto generated release builds'
artifacts: '/home/runner/work/guibot/guibot/${{ env.name }}_${{ env.version }}.${{ env.ext }}'
updateOnlyUnreleased: 'false'
allowUpdates: 'true'
prerelease: 'false'
makeLatest: 'true'
draft: false
prerelease: false
release_name: ${{ env.version }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
if: matrix.install_variant != 'pip'

- name: Upload Artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: '/home/runner/work/guibot/guibot/${{ env.name }}_${{ env.version }}.${{ env.ext }}'
asset_name: '${{ env.name }}_${{ env.version }}.${{ env.ext }}'
asset_content_type: ''
if: matrix.install_variant != 'pip'

0 comments on commit 191c52b

Please sign in to comment.