Generate release zips #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate release zips | |
on: | |
workflow_dispatch: | |
# push: | |
# branches: [ main ] | |
# paths-ignore: | |
# - '**.md' | |
# pull_request: | |
# paths-ignore: | |
# - '**.md' | |
jobs: | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.8' | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install --yes --no-install-recommends ffmpeg | |
pip3 install ffmpeg-normalize | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Run build checks | |
run: ./build-checks.py | |
- name: Set VERSION if tagged build | |
if: startsWith(github.event.ref, 'refs/tags/v') | |
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Build the release zip packages | |
if: github.event_name != 'pull_request' | |
run: ./release.sh | |
- name: Upload binaries to release | |
uses: marvinpinto/action-automatic-releases@latest | |
if: github.event_name != 'pull_request' | |
with: | |
title: "Latest" | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
files: | | |
release/edgetx-sdcard-sounds-*.zip | |
sounds.json | |
automatic_release_tag: 'latest' | |
prerelease: true |