-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.06 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
name: Build Release Binaries
on:
push:
tags:
- "v*"
jobs:
build:
name: Make release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Display the release tag
run: echo ${{ github.event.release.tag_name }}
- name: Install dependencies
run: ./.github/install-dependencies.sh
- name: Make the release
run: gh release create v$$version --title "Release v$$version" dist/*
- name: Build the executable
run: |
pyinstaller --noconfirm --onefile --windowed --name wincoll \
--add-data "wincoll/*.wav:wincoll/" \
--add-data "wincoll/*.png:wincoll/" \
--add-data "wincoll/*.ttf:wincoll/" \
--add-data "wincoll/levels/*:wincoll/levels/" \
wincoll/__main__.py
- name: Upload the binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ./dist/wincoll
file_glob: true