Skip to content

Commit

Permalink
Merge pull request #6 from thunderock/complete_build
Browse files Browse the repository at this point in the history
Complete build
  • Loading branch information
thunderock authored Jun 29, 2024
2 parents 8961cce + 10f32ca commit 9591126
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,53 @@ jobs:
with:
name: dist
path: dist

- name: Install Poetry
run: |
curl -fsS https://install.python-poetry.org | python - -y
- name: Update PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Check distributions
run: |
ls -la dist
- name: Check Version
id: check-version
run: |
[[ "${GITHUB_REF#refs/tags/}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
|| echo ::set-output name=prerelease::true
- name: Set tag
id: set-tag
run: |
echo ::set-output name=tag::$(ls dist/*.whl | sed -n 's/.*graph_ml-\(.*\).whl/\1/p' | cut -d'-' -f1)
- name: Print TAG
run: echo "v${{ steps.set-tag.outputs.tag }}"

- name: Delete older release assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ steps.set-tag.outputs.tag }}"
fail-if-no-assets: false
fail-if-no-release: false
assets: |
*.tar.gz
*.whl
*.zip
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
tag: "v${{ steps.set-tag.outputs.tag }}"
skipIfReleaseExists: false
replacesArtifacts: true
prerelease: steps.check-version.outputs.prerelease == 'true'
makeLatest: true
allowUpdates: true

0 comments on commit 9591126

Please sign in to comment.