mirror of
https://github.com/cxong/cdogs-sdl.git
synced 2025-07-22 15:10:33 +02:00
Deploy on release created, github upload butler #853
This commit is contained in:
14
.github/workflows/cmake.yml
vendored
14
.github/workflows/cmake.yml
vendored
@@ -136,7 +136,8 @@ jobs:
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: >
|
||||
startsWith(github.ref, 'refs/tags/') &&
|
||||
(!startsWith(matrix.os, 'ubuntu') || (matrix.cc == 'gcc' && matrix.cc_version == 'latest'))
|
||||
(!startsWith(matrix.os, 'ubuntu') || (matrix.cc == 'gcc' && matrix.cc_version == 'latest')) &&
|
||||
github.event.release.created
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
@@ -144,7 +145,7 @@ jobs:
|
||||
fail_on_unmatched_files: true
|
||||
|
||||
- name: Publish to itch.io (Linux)
|
||||
if: startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc' && matrix.cc_version == 'latest' && !github.event.release.prerelease
|
||||
if: startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc' && matrix.cc_version == 'latest' && github.event.release.created
|
||||
env:
|
||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||
run: |
|
||||
@@ -155,7 +156,7 @@ jobs:
|
||||
./butler push C-Dogs*SDL-*-Linux.tar.gz congusbongus/cdogs-sdl:linux --userversion $VERSION
|
||||
|
||||
- name: Publish to itch.io (macOS)
|
||||
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'macos-latest' && !github.event.release.prerelease
|
||||
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'macos-latest' && github.event.release.created
|
||||
env:
|
||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||
run: |
|
||||
@@ -164,3 +165,10 @@ jobs:
|
||||
chmod +x butler
|
||||
./butler -V
|
||||
./butler push C-Dogs*SDL-*-OSX.dmg congusbongus/cdogs-sdl:mac --userversion $VERSION
|
||||
|
||||
- name: Publish to itch.io (Windows)
|
||||
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest' && github.event.release.created
|
||||
env:
|
||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||
run: |
|
||||
.\build\windows\butler.bat
|
||||
|
14
.github/workflows/cmake.yml.cmake
vendored
14
.github/workflows/cmake.yml.cmake
vendored
@@ -136,7 +136,8 @@ jobs:
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: >
|
||||
startsWith(github.ref, 'refs/tags/') &&
|
||||
(!startsWith(matrix.os, 'ubuntu') || (matrix.cc == 'gcc' && matrix.cc_version == 'latest'))
|
||||
(!startsWith(matrix.os, 'ubuntu') || (matrix.cc == 'gcc' && matrix.cc_version == 'latest')) &&
|
||||
github.event.release.created
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
@@ -144,7 +145,7 @@ jobs:
|
||||
fail_on_unmatched_files: true
|
||||
|
||||
- name: Publish to itch.io (Linux)
|
||||
if: startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc' && matrix.cc_version == 'latest' && !github.event.release.prerelease
|
||||
if: startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc' && matrix.cc_version == 'latest' && github.event.release.created
|
||||
env:
|
||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||
run: |
|
||||
@@ -155,7 +156,7 @@ jobs:
|
||||
./butler push C-Dogs*SDL-*-Linux.tar.gz congusbongus/cdogs-sdl:linux --userversion $VERSION
|
||||
|
||||
- name: Publish to itch.io (macOS)
|
||||
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'macos-latest' && !github.event.release.prerelease
|
||||
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'macos-latest' && github.event.release.created
|
||||
env:
|
||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||
run: |
|
||||
@@ -164,3 +165,10 @@ jobs:
|
||||
chmod +x butler
|
||||
./butler -V
|
||||
./butler push C-Dogs*SDL-*-OSX.dmg congusbongus/cdogs-sdl:mac --userversion $VERSION
|
||||
|
||||
- name: Publish to itch.io (Windows)
|
||||
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows-latest' && github.event.release.created
|
||||
env:
|
||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||
run: |
|
||||
.\build\windows\butler.bat
|
||||
|
@@ -62,4 +62,4 @@ deploy:
|
||||
appveyor_repo_tag: true
|
||||
|
||||
after_deploy:
|
||||
- .\build\appveyor\butler.bat
|
||||
- .\build\windows\butler.bat
|
||||
|
@@ -62,4 +62,4 @@ deploy:
|
||||
appveyor_repo_tag: true
|
||||
|
||||
after_deploy:
|
||||
- .\build\appveyor\butler.bat
|
||||
- .\build\windows\butler.bat
|
||||
|
Reference in New Issue
Block a user