Skip to content

try fixing tag name #46

try fixing tag name

try fixing tag name #46

Workflow file for this run

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: ubuntu
- 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
- id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create \
--target ${{ steps.vars.outputs.sha_short }} \
--title "Release ${{ steps.vars.outputs.sha_short }}" \
${{ steps.vars.outputs.sha_short }} \
dist/*