Skip to content

Bump version to 0.25.5, update CHANGELOG #44

Bump version to 0.25.5, update CHANGELOG

Bump version to 0.25.5, update CHANGELOG #44

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release-main:
runs-on: ubuntu-latest
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Package source
run: |
POP_NAME=poptracker_`echo ${{ env.RELEASE_VERSION }} | tr '.' '-'`
cd ..
tar --exclude-vcs -cJvf "${POP_NAME}_full-source.tar.xz" PopTracker
- name: Create Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
draft: true
prerelease: true
name: PopTracker v${{ env.RELEASE_VERSION }}
body: |
see [CHANGELOG.md](../v${{ env.RELEASE_VERSION }}/CHANGELOG.md)
and [README.md](../v${{ env.RELEASE_VERSION }}/README.md)
files: "../*.tar.xz"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-appimage:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install coreutils build-essential libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev p7zip wget
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Set version
run: |
sed -i "s/version: latest/version: ${{ env.RELEASE_VERSION }}/g" linux/AppImageBuilder.yml
- name: Get appimage-builder
run: |
wget -q -O appimage-builder https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
chmod +x appimage-builder
./appimage-builder --appimage-extract
echo -e '#/bin/sh\n./squashfs-root/AppRun "$@"' > appimage-builder
- name: Build AppImage
run: |
./appimage-builder --recipe linux/AppImageBuilder.yml
- name: Create Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
draft: true
prerelease: true
name: PopTracker v${{ env.RELEASE_VERSION }}
files: |
*.AppImage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-ubuntu:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install coreutils build-essential libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev p7zip wget
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Build RELEASE
run: make native CONF=RELEASE VERSION=${{ env.RELEASE_VERSION }} -j2
- name: Run tests
run: make test CONF=RELEASE VERSION=${{ env.RELEASE_VERSION }}
- name: Build DIST # this builds a .tar.xz
run: make CONF=DIST VERSION=${{ env.RELEASE_VERSION }}
- name: Create Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
draft: true
prerelease: true
name: PopTracker v${{ env.RELEASE_VERSION }}
files: |
dist/*.tar.xz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-macos:
runs-on: macos-latest
steps:
- name: Install dependencies
run: |
brew install coreutils SDL2 sdl2_ttf sdl2_image [email protected] automake libtool autoconf
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Build RELEASE
run: make native CONF=RELEASE VERSION=${{ env.RELEASE_VERSION }} -j3
- name: Run tests
run: make test CONF=RELEASE VERSION=${{ env.RELEASE_VERSION }}
- name: Build DIST # this builds the app bundle, zips it and maybe .dmg in the future
run: make CONF=DIST VERSION=${{ env.RELEASE_VERSION }}
- name: Create Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
draft: true
prerelease: true
name: PopTracker v${{ env.RELEASE_VERSION }}
files: |
dist/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#release-windows:
# The windows dist zips are created with a custom SDL on a bleeding edge arch linux mingw. See `make cross`.