Skip to content

Commit 7c5fa89

Browse files
committed
run tests on macos
1 parent 8961cce commit 7c5fa89

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/release.yml

+50
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,53 @@ jobs:
4747
with:
4848
name: dist
4949
path: dist
50+
51+
- name: Install Poetry
52+
run: |
53+
curl -fsS https://install.python-poetry.org | python - -y
54+
55+
- name: Update PATH
56+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
57+
58+
- name: Check distributions
59+
run: |
60+
ls -la dist
61+
62+
- name: Check Version
63+
id: check-version
64+
run: |
65+
[[ "${GITHUB_REF#refs/tags/}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
66+
|| echo ::set-output name=prerelease::true
67+
68+
- name: Set tag
69+
id: set-tag
70+
run: |
71+
echo ::set-output name=tag::$(ls dist/*.tar.gz | sed -n 's/.*graph_ml-\(.*\).tar.gz/\1/p')
72+
73+
- name: Print TAG
74+
run: echo "v${{ steps.set-tag.outputs.tag }}"
75+
76+
- name: Delete older release assets
77+
uses: mknejp/delete-release-assets@v1
78+
with:
79+
token: ${{ secrets.GITHUB_TOKEN }}
80+
tag: "v${{ steps.set-tag.outputs.tag }}"
81+
fail-if-no-assets: false
82+
fail-if-no-release: false
83+
assets: |
84+
*.tar.gz
85+
*.whl
86+
*.zip
87+
88+
- name: Create Release
89+
uses: ncipollo/release-action@v1
90+
with:
91+
artifacts: "dist/*"
92+
token: ${{ secrets.GITHUB_TOKEN }}
93+
draft: false
94+
tag: "v${{ steps.set-tag.outputs.tag }}"
95+
skipIfReleaseExists: false
96+
replacesArtifacts: true
97+
prerelease: steps.check-version.outputs.prerelease == 'true'
98+
makeLatest: true
99+
allowUpdates: true

0 commit comments

Comments
 (0)