Skip to content

finalize next release #5

finalize next release

finalize next release #5

Workflow file for this run

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 -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: false