mirror of
https://github.com/cxong/cdogs-sdl.git
synced 2025-07-22 23:13:00 +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
|
uses: softprops/action-gh-release@v1
|
||||||
if: >
|
if: >
|
||||||
startsWith(github.ref, 'refs/tags/') &&
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@@ -144,7 +145,7 @@ jobs:
|
|||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
|
|
||||||
- name: Publish to itch.io (Linux)
|
- 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:
|
env:
|
||||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
@@ -155,7 +156,7 @@ jobs:
|
|||||||
./butler push C-Dogs*SDL-*-Linux.tar.gz congusbongus/cdogs-sdl:linux --userversion $VERSION
|
./butler push C-Dogs*SDL-*-Linux.tar.gz congusbongus/cdogs-sdl:linux --userversion $VERSION
|
||||||
|
|
||||||
- name: Publish to itch.io (macOS)
|
- 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:
|
env:
|
||||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
@@ -164,3 +165,10 @@ jobs:
|
|||||||
chmod +x butler
|
chmod +x butler
|
||||||
./butler -V
|
./butler -V
|
||||||
./butler push C-Dogs*SDL-*-OSX.dmg congusbongus/cdogs-sdl:mac --userversion $VERSION
|
./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
|
uses: softprops/action-gh-release@v1
|
||||||
if: >
|
if: >
|
||||||
startsWith(github.ref, 'refs/tags/') &&
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@@ -144,7 +145,7 @@ jobs:
|
|||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
|
|
||||||
- name: Publish to itch.io (Linux)
|
- 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:
|
env:
|
||||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
@@ -155,7 +156,7 @@ jobs:
|
|||||||
./butler push C-Dogs*SDL-*-Linux.tar.gz congusbongus/cdogs-sdl:linux --userversion $VERSION
|
./butler push C-Dogs*SDL-*-Linux.tar.gz congusbongus/cdogs-sdl:linux --userversion $VERSION
|
||||||
|
|
||||||
- name: Publish to itch.io (macOS)
|
- 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:
|
env:
|
||||||
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
@@ -164,3 +165,10 @@ jobs:
|
|||||||
chmod +x butler
|
chmod +x butler
|
||||||
./butler -V
|
./butler -V
|
||||||
./butler push C-Dogs*SDL-*-OSX.dmg congusbongus/cdogs-sdl:mac --userversion $VERSION
|
./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
|
appveyor_repo_tag: true
|
||||||
|
|
||||||
after_deploy:
|
after_deploy:
|
||||||
- .\build\appveyor\butler.bat
|
- .\build\windows\butler.bat
|
||||||
|
@@ -62,4 +62,4 @@ deploy:
|
|||||||
appveyor_repo_tag: true
|
appveyor_repo_tag: true
|
||||||
|
|
||||||
after_deploy:
|
after_deploy:
|
||||||
- .\build\appveyor\butler.bat
|
- .\build\windows\butler.bat
|
||||||
|
Reference in New Issue
Block a user