mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
CI: Rename beta builds to preview builds, stable to development
This commit is contained in:
parent
add6754381
commit
e5495b43c6
41
.github/workflows/rolling-release.yml
vendored
41
.github/workflows/rolling-release.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- stable
|
- dev
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- 'appveyor.yml'
|
- 'appveyor.yml'
|
||||||
|
@ -27,23 +27,23 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Tag as development build
|
- name: Tag as preview build
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
echo #pragma once > src/scmversion/tag.h
|
echo #pragma once > src/scmversion/tag.h
|
||||||
echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-release.zip" >> src/scmversion/tag.h
|
echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-release.zip" >> src/scmversion/tag.h
|
||||||
echo #define SCM_RELEASE_TAGS {"latest", "beta"} >> src/scmversion/tag.h
|
echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h
|
||||||
echo #define SCM_RELEASE_TAG "beta" >> src/scmversion/tag.h
|
echo #define SCM_RELEASE_TAG "preview" >> src/scmversion/tag.h
|
||||||
|
|
||||||
|
|
||||||
- name: Tag as stable build
|
- name: Tag as dev build
|
||||||
if: github.ref == 'refs/heads/stable'
|
if: github.ref == 'refs/heads/dev'
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
echo #pragma once > src/scmversion/tag.h
|
echo #pragma once > src/scmversion/tag.h
|
||||||
echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-release.zip" >> src/scmversion/tag.h
|
echo #define SCM_RELEASE_ASSET "duckstation-windows-x64-release.zip" >> src/scmversion/tag.h
|
||||||
echo #define SCM_RELEASE_TAGS {"latest", "beta"} >> src/scmversion/tag.h
|
echo #define SCM_RELEASE_TAGS {"latest", "preview"} >> src/scmversion/tag.h
|
||||||
echo #define SCM_RELEASE_TAG "latest" >> src/scmversion/tag.h
|
echo #define SCM_RELEASE_TAG "latest" >> src/scmversion/tag.h
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,13 +76,6 @@ jobs:
|
||||||
name: "windows"
|
name: "windows"
|
||||||
path: "duckstation-windows-x64-release.zip"
|
path: "duckstation-windows-x64-release.zip"
|
||||||
|
|
||||||
- name: Tag as release build
|
|
||||||
shell: cmd
|
|
||||||
run: |
|
|
||||||
echo #pragma once > src/scmversion/tag.h
|
|
||||||
echo #define SCM_RELEASE_TAG "latest" >> src/scmversion/tag.h
|
|
||||||
echo #define SCM_RELEASE_ASSET "duckstation-windows-arm64-release.zip" >> src/scmversion/tag.h
|
|
||||||
|
|
||||||
- name: Compile arm64 release build
|
- name: Compile arm64 release build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
|
@ -292,7 +285,7 @@ jobs:
|
||||||
./gradlew assembleRelease
|
./gradlew assembleRelease
|
||||||
|
|
||||||
- name: Sign APK
|
- name: Sign APK
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/stable'
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
|
||||||
uses: r0adkll/sign-android-release@v1
|
uses: r0adkll/sign-android-release@v1
|
||||||
with:
|
with:
|
||||||
releaseDirectory: android/app/build/outputs/apk/release
|
releaseDirectory: android/app/build/outputs/apk/release
|
||||||
|
@ -302,14 +295,14 @@ jobs:
|
||||||
keyPassword: ${{ secrets.APK_KEY_PASSWORD }}
|
keyPassword: ${{ secrets.APK_KEY_PASSWORD }}
|
||||||
|
|
||||||
- name: Rename APK
|
- name: Rename APK
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/stable'
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd android
|
cd android
|
||||||
mv app/build/outputs/apk/release/app-release-unsigned-signed.apk ../duckstation-android.apk
|
mv app/build/outputs/apk/release/app-release-unsigned-signed.apk ../duckstation-android.apk
|
||||||
|
|
||||||
- name: Upload APK
|
- name: Upload APK
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/stable'
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: "android"
|
name: "android"
|
||||||
|
@ -369,7 +362,7 @@ jobs:
|
||||||
create-release:
|
create-release:
|
||||||
needs: [windows-build, windows-libretro-build, linux-build, linux-libretro-build, android-build, macos-build]
|
needs: [windows-build, windows-libretro-build, linux-build, linux-libretro-build, android-build, macos-build]
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/stable'
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
|
||||||
steps:
|
steps:
|
||||||
- name: Download Windows Artifacts
|
- name: Download Windows Artifacts
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
|
@ -416,14 +409,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: "macos-x64"
|
name: "macos-x64"
|
||||||
|
|
||||||
- name: Create beta release
|
- name: Create preview release
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
automatic_release_tag: "beta"
|
automatic_release_tag: "preview"
|
||||||
prerelease: true
|
prerelease: true
|
||||||
title: "Latest Beta/Development Build"
|
title: "Latest Preview Build"
|
||||||
files: |
|
files: |
|
||||||
windows/duckstation-windows-x64-release.zip
|
windows/duckstation-windows-x64-release.zip
|
||||||
windows/duckstation-windows-arm64-release.zip
|
windows/duckstation-windows-arm64-release.zip
|
||||||
|
@ -441,14 +434,14 @@ jobs:
|
||||||
macos-x64/duckstation-mac-release.zip
|
macos-x64/duckstation-mac-release.zip
|
||||||
macos-x64/duckstation_libretro_mac.dylib.zip
|
macos-x64/duckstation_libretro_mac.dylib.zip
|
||||||
|
|
||||||
- name: Create stable release
|
- name: Create dev release
|
||||||
if: github.ref == 'refs/heads/stable'
|
if: github.ref == 'refs/heads/dev'
|
||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
automatic_release_tag: "latest"
|
automatic_release_tag: "latest"
|
||||||
prerelease: false
|
prerelease: false
|
||||||
title: "Latest Stable Build"
|
title: "Latest Development Build"
|
||||||
files: |
|
files: |
|
||||||
windows/duckstation-windows-x64-release.zip
|
windows/duckstation-windows-x64-release.zip
|
||||||
windows/duckstation-windows-arm64-release.zip
|
windows/duckstation-windows-arm64-release.zip
|
||||||
|
|
Loading…
Reference in a new issue