-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.03 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build
on:
push:
branches:
- master
jobs:
build:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
name: windows
- os: ubuntu-latest
name: linux
- os: macos-latest
name: macos
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
- run: pip install -r requirements.txt pyinstaller Pillow
- run: pyinstaller main.py --onefile --collect-data=grapheme --name=ncp-${{ matrix.name }}
- run: ./dist/ncp-${{ matrix.name }} --help
- run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "sha_short=$(git rev-parse --short HEAD)" >> $env:GITHUB_ENV
- uses: softprops/action-gh-release@v1
with:
files: dist/*
name: Release ${{ env.sha_short }}
tag_name: ${{ env.sha_short }}
token: ${{ secrets.GITHUB_TOKEN }}