-
-
Notifications
You must be signed in to change notification settings - Fork 84
67 lines (57 loc) · 1.76 KB
/
Copy pathbuild_release.yml
File metadata and controls
67 lines (57 loc) · 1.76 KB
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
58
59
60
61
62
63
64
65
66
67
name: Generate release zips
on:
workflow_dispatch:
push:
tags:
- v*
# push:
# branches: [ main ]
# paths-ignore:
# - '**.md'
# pull_request:
# paths-ignore:
# - '**.md'
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install Dependencies
run: |
sudo apt-get update && sudo apt-get install --yes --no-install-recommends ffmpeg
- name: Check out the repo
uses: actions/checkout@v4
- name: Install Python dependencies
run: uv sync
- name: Run build checks
run: uv run ./build-checks.py
- name: Set VERSION if tagged build
if: startsWith(github.event.ref, 'refs/tags/v')
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Build the release zip packages
if: github.event_name != 'pull_request'
run: ./release.sh
- name: Auto Release to Latest
uses: crowbarmaster/GH-Automatic-Releases@latest
if: github.event_name != 'pull_request'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: "Latest"
automatic_release_tag: "latest"
prerelease: true
files: |
release/edgetx-sdcard-sounds-*.zip
sounds.json
- name: Auto Create Draft Release
uses: crowbarmaster/GH-Automatic-Releases@latest
if: ${{ startsWith(github.event.ref, 'refs/tags/v') && github.event_name != 'pull_request' }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
files: |
release/edgetx-sdcard-sounds-*.zip
sounds.json