ci/cd: Update package versions

This commit is contained in:
Denis Pauk 2024-09-13 23:40:25 +03:00
parent daa471e0f8
commit 51d092660b
3 changed files with 22 additions and 7 deletions

View File

@ -4,6 +4,8 @@ on:
push: push:
branches: branches:
- 'master' - 'master'
tags:
- "*"
pull_request: pull_request:
types: types:
- edited - edited
@ -58,3 +60,16 @@ jobs:
name: quake2-macos-${{github.sha}} name: quake2-macos-${{github.sha}}
path: publish/ path: publish/
if-no-files-found: error if-no-files-found: error
- name: Create tag package
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
# create archive
mkdir yquake2remaster-${{matrix.env}}-${{github.ref_name}}
cp -rv publish/quake2-macos-${{github.sha}}/* yquake2remaster-${{matrix.env}}-${{github.ref_name}}
zip -9r yquake2remaster-${{matrix.env}}-${{github.ref_name}}.zip yquake2remaster-${{matrix.env}}-${{github.ref_name}}
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: |
yquake2remaster-${{matrix.env}}-${{github.ref_name}}.zip

View File

@ -70,8 +70,8 @@ jobs:
cp doc/080_contributing.md publish/quake2-win32-${{github.sha}}/misc/docs/080_contributing.txt cp doc/080_contributing.md publish/quake2-win32-${{github.sha}}/misc/docs/080_contributing.txt
cp doc/090_filelists.md publish/quake2-win32-${{github.sha}}/misc/docs/090_filelists.md cp doc/090_filelists.md publish/quake2-win32-${{github.sha}}/misc/docs/090_filelists.md
# SDL2 # SDL2
wget -c https://github.com/libsdl-org/SDL/releases/download/release-2.30.6/SDL2-2.30.6-win32-x86.zip wget -c https://github.com/libsdl-org/SDL/releases/download/release-2.30.7/SDL2-2.30.7-win32-x86.zip
unzip -o SDL2-2.30.6-win32-x86.zip unzip -o SDL2-2.30.7-win32-x86.zip
cp SDL2.dll publish/quake2-win32-${{github.sha}}/ cp SDL2.dll publish/quake2-win32-${{github.sha}}/
# openal-soft # openal-soft
wget -c https://github.com/kcat/openal-soft/releases/download/1.23.1/openal-soft-1.23.1-bin.zip wget -c https://github.com/kcat/openal-soft/releases/download/1.23.1/openal-soft-1.23.1-bin.zip

View File

@ -70,13 +70,13 @@ jobs:
cp doc/080_contributing.md publish/quake2-win64-${{github.sha}}/misc/docs/080_contributing.txt cp doc/080_contributing.md publish/quake2-win64-${{github.sha}}/misc/docs/080_contributing.txt
cp doc/090_filelists.md publish/quake2-win64-${{github.sha}}/misc/docs/090_filelists.md cp doc/090_filelists.md publish/quake2-win64-${{github.sha}}/misc/docs/090_filelists.md
# SDL2 # SDL2
wget -c https://github.com/libsdl-org/SDL/releases/download/release-2.30.6/SDL2-2.30.6-win32-x86.zip wget -c https://github.com/libsdl-org/SDL/releases/download/release-2.30.7/SDL2-2.30.7-win32-x64.zip
unzip -o SDL2-2.30.6-win32-x86.zip unzip -o SDL2-2.30.7-win32-x64.zip
cp SDL2.dll publish/quake2-win64-${{github.sha}}/ cp SDL2.dll publish/quake2-win64-${{github.sha}}/
# static ffmpeg # static ffmpeg
wget -c https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2023-11-30-12-55/ffmpeg-n6.0.1-win64-lgpl-shared-6.0.zip wget -c https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-08-31-12-50/ffmpeg-n7.0.2-6-g7e69129d2f-win64-lgpl-shared-7.0.zip
unzip -o ffmpeg-n6.0.1-win64-lgpl-shared-6.0.zip unzip -o ffmpeg-n7.0.2-6-g7e69129d2f-win64-lgpl-shared-7.0.zip
cp ffmpeg-n6.0.1-win64-lgpl-shared-6.0/bin/*.dll publish/quake2-win64-${{github.sha}}/ cp ffmpeg-n7.0.2-6-g7e69129d2f-win64-lgpl-shared-7.0/bin/*.dll publish/quake2-win64-${{github.sha}}/
# remove unused libraries # remove unused libraries
rm -fv publish/quake2-win64-${{github.sha}}/avdevice*.dll publish/quake2-win64-${{github.sha}}/avfilter*.dll publish/quake2-win64-${{github.sha}}/postproc*.dll rm -fv publish/quake2-win64-${{github.sha}}/avdevice*.dll publish/quake2-win64-${{github.sha}}/avfilter*.dll publish/quake2-win64-${{github.sha}}/postproc*.dll
# openal-soft # openal-soft