2022-08-31 12:04:09 +02:00
|
|
|
name: Deploy experimental release
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
call-release-build:
|
|
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
with:
|
|
|
|
deploymode: release
|
|
|
|
experimentalversion: ${{ github.run_number }}
|
|
|
|
deploy:
|
|
|
|
name: Deploy experimental release
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
needs: call-release-build
|
|
|
|
steps:
|
2022-11-04 15:07:17 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-08-31 12:04:09 +02:00
|
|
|
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: cemu-bin-linux-x64
|
|
|
|
path: cemu-bin-linux-x64
|
|
|
|
|
2022-11-04 15:07:17 +01:00
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: cemu-appimage-x64
|
|
|
|
path: cemu-appimage-x64
|
|
|
|
|
2022-08-31 12:04:09 +02:00
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: cemu-bin-windows-x64
|
|
|
|
path: cemu-bin-windows-x64
|
|
|
|
|
2022-09-23 11:17:50 +02:00
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: cemu-bin-macos-x64
|
|
|
|
path: cemu-bin-macos-x64
|
|
|
|
|
2022-08-31 12:04:09 +02:00
|
|
|
- name: Initialize
|
|
|
|
run: |
|
|
|
|
mkdir upload
|
|
|
|
sudo apt install zip
|
|
|
|
|
|
|
|
- name: Get version
|
|
|
|
run: |
|
|
|
|
echo "Experimental version: ${{ github.run_number }}"
|
|
|
|
ls
|
|
|
|
gcc -o getversion .github/getversion.cpp
|
|
|
|
./getversion
|
|
|
|
echo "Cemu CI version: $(./getversion)"
|
|
|
|
echo "CEMU_FOLDER_NAME=Cemu_$(./getversion)-${{ github.run_number }}" >> $GITHUB_ENV
|
|
|
|
echo "CEMU_VERSION=$(./getversion)-${{ github.run_number }}" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Create release from windows-bin
|
|
|
|
run: |
|
|
|
|
ls ./
|
|
|
|
ls ./bin/
|
|
|
|
cp -R ./bin ./${{ env.CEMU_FOLDER_NAME }}
|
|
|
|
mv cemu-bin-windows-x64/Cemu.exe ./${{ env.CEMU_FOLDER_NAME }}/Cemu.exe
|
|
|
|
zip -9 -r upload/cemu-${{ env.CEMU_VERSION }}-windows-x64.zip ${{ env.CEMU_FOLDER_NAME }}
|
|
|
|
rm -r ./${{ env.CEMU_FOLDER_NAME }}
|
2022-11-04 15:07:17 +01:00
|
|
|
|
|
|
|
- name: Create appimage
|
|
|
|
run: |
|
|
|
|
VERSION=${{ env.CEMU_VERSION }}
|
|
|
|
echo "Cemu Version is $VERSION"
|
|
|
|
ls cemu-appimage-x64
|
|
|
|
mv cemu-appimage-x64/Cemu-*-x86_64.AppImage upload/Cemu-$VERSION-x86_64.AppImage
|
|
|
|
|
2022-08-31 12:04:09 +02:00
|
|
|
- name: Create release from linux-bin
|
|
|
|
run: |
|
|
|
|
ls ./
|
|
|
|
ls ./bin/
|
|
|
|
cp -R ./bin ./${{ env.CEMU_FOLDER_NAME }}
|
|
|
|
mv cemu-bin-linux-x64/Cemu ./${{ env.CEMU_FOLDER_NAME }}/Cemu
|
|
|
|
zip -9 -r upload/cemu-${{ env.CEMU_VERSION }}-ubuntu-20.04-x64.zip ${{ env.CEMU_FOLDER_NAME }}
|
|
|
|
rm -r ./${{ env.CEMU_FOLDER_NAME }}
|
2022-09-23 11:17:50 +02:00
|
|
|
|
|
|
|
- name: Create release from macos-bin
|
2022-10-23 16:58:28 +02:00
|
|
|
run: cp cemu-bin-macos-x64/Cemu.dmg upload/cemu-${{ env.CEMU_VERSION }}-macos-12-x64.dmg
|
2022-09-23 11:17:50 +02:00
|
|
|
|
2022-08-31 12:04:09 +02:00
|
|
|
- name: Create release
|
|
|
|
run: |
|
|
|
|
wget -O ghr.tar.gz https://github.com/tcnksm/ghr/releases/download/v0.15.0/ghr_v0.15.0_linux_amd64.tar.gz
|
|
|
|
tar xvzf ghr.tar.gz; rm ghr.tar.gz
|
|
|
|
echo "[INFO] Release tag: v${{ env.CEMU_VERSION }}"
|
2022-09-24 12:55:13 +02:00
|
|
|
ghr_v0.15.0_linux_amd64/ghr -prerelease -t ${{ secrets.GITHUB_TOKEN }} -n "Cemu ${{ env.CEMU_VERSION }} (Experimental)" -b "Cemu experimental release" "v${{ env.CEMU_VERSION }}" ./upload
|