File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 29
29
- run : pip install -r requirements.txt pyinstaller Pillow
30
30
- run : pyinstaller main.py --onefile --collect-data=grapheme --name=ncp-${{ matrix.name }}
31
31
- run : ./dist/ncp-${{ matrix.name }} --help
32
- - run : |
33
- cd dist
34
- gh release create $(git rev-parse --short HEAD) * --title "Release $(git rev-parse --short HEAD)" --latest
35
- env:
36
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37
- shell: bash
32
+ - id : vars
33
+ run : |
34
+ if [[ ${{ matrix.os }} == 'windows-latest' ]]; then
35
+ set sha_short=$(git rev-parse --short HEAD)
36
+ else
37
+ echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
38
+ fi
39
+ - uses : softprops/action-gh-release@v1
40
+ with :
41
+ files : dist/*
42
+ name : Release ${{ steps.vars.outputs.sha_short }}
43
+ tag_name : ${{ steps.vars.outputs.sha_short }}
44
+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments