-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 1.92 KB
/
release.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
name: Build packages
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: macos-latest
TARGET: mac-os
CMD_BUILD: >
pyinstaller -F -w -n tiled_gif_export src/tiled_gif_export.py &&
cd dist/ &&
zip -r9 "tiled_gif_export (mac).zip" tiled_gif_export.app/
OUT_FILE_NAME: tiled_gif_export (mac).zip
ASSET_MIME: application/zip
- os: windows-latest
TARGET: windows
CMD_BUILD: >
pyinstaller -w -n "Tiled gif export" src/tiled_gif_export.py &&
cd dist &&
tar.exe -a -c -f "tiled_gif_export (windows).zip" -C tiled_gif_export *
OUT_FILE_NAME: tiled_gif_export (windows).zip
ASSET_MIME: application/zip
- os: ubuntu-latest
TARGET: linux
CMD_BUILD: pyinstaller -F -w -n tiled_gif_export src/tiled_gif_export.py
OUT_FILE_NAME: tiled_gif_export
ASSET_MIME: application/x-executable
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build with pyinstaller for ${{matrix.TARGET}}
run: ${{matrix.CMD_BUILD}}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./dist/${{ matrix.OUT_FILE_NAME }}
tag: ${{ github.ref }}
overwrite: true
body: "This is my release text"