Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b1ffda018b |
@@ -12,8 +12,9 @@ on:
|
|||||||
env:
|
env:
|
||||||
GODOT_VERSION: 4.3
|
GODOT_VERSION: 4.3
|
||||||
PROJECT_PATH: .
|
PROJECT_PATH: .
|
||||||
|
PROJECT_NAME: GodotTest
|
||||||
GAME_VERSION: ${{gitea.ref_name}}
|
GAME_VERSION: ${{gitea.ref_name}}
|
||||||
EXPORT_NAME: test-project-$GAME_VERSION
|
EXPORT_NAME: test-project_${{gitea.ref_name}}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -47,38 +48,38 @@ jobs:
|
|||||||
- name: Windows Build
|
- name: Windows Build
|
||||||
run: |
|
run: |
|
||||||
cd $PROJECT_PATH
|
cd $PROJECT_PATH
|
||||||
./godot --headless --verbose --export-release "Windows Desktop" "build/$EXPORT_NAME"_"$GAME_VERSION.exe"
|
./godot --headless --verbose --export-release "Windows Desktop" "build/$EXPORT_NAME.exe"
|
||||||
|
|
||||||
- name: Linux Build
|
- name: Linux Build
|
||||||
run: |
|
run: |
|
||||||
cd $PROJECT_PATH
|
cd $PROJECT_PATH
|
||||||
./godot --headless --verbose --export-release "Linux/X11" "build/$EXPORT_NAME"_"$GAME_VERSION.x86_64"
|
./godot --headless --verbose --export-release "Linux/X11" "build/$EXPORT_NAME.x86_64"
|
||||||
|
|
||||||
- name: MacOS Build
|
- name: MacOS Build
|
||||||
run: |
|
run: |
|
||||||
cd $PROJECT_PATH
|
cd $PROJECT_PATH
|
||||||
./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME"_"$GAME_VERSION.zip"
|
./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME.zip"
|
||||||
|
|
||||||
- name: Upload Artifact Windows
|
- name: Upload Artifact Windows
|
||||||
run: |
|
run: |
|
||||||
#ls -la build
|
#ls -la build
|
||||||
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
||||||
--upload-file "build/$EXPORT_NAME"_"$GAME_VERSION.exe" \
|
--upload-file "build/$EXPORT_NAME.exe" \
|
||||||
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME"_"$GAME_VERSION.exe
|
https://gitea.sanplex.tech/api/packages/sansan/generic/$PROJECT_NAME/$GAME_VERSION/$EXPORT_NAME.exe
|
||||||
|
|
||||||
- name: Upload Artifact Linux
|
- name: Upload Artifact Linux
|
||||||
run: |
|
run: |
|
||||||
ls -la build
|
ls -la build
|
||||||
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
||||||
--upload-file "build/$EXPORT_NAME"_"$GAME_VERSION.x86_64" \
|
--upload-file "build/$EXPORT_NAME.x86_64" \
|
||||||
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME"_"$GAME_VERSION.x86_64
|
https://gitea.sanplex.tech/api/packages/sansan/generic/$PROJECT_NAME/$GAME_VERSION/$EXPORT_NAME.x86_64
|
||||||
|
|
||||||
- name: Upload Artifact MacOS
|
- name: Upload Artifact MacOS
|
||||||
run: |
|
run: |
|
||||||
ls -la build
|
ls -la build
|
||||||
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
curl --user ${{ github.repository_owner }}:${{ secrets.TOKEN }} \
|
||||||
--upload-file "build/$EXPORT_NAME"_"$GAME_VERSION.zip" \
|
--upload-file "build/$EXPORT_NAME.zip" \
|
||||||
https://gitea.sanplex.tech/api/packages/sansan/generic/GodotTest/$GAME_VERSION/$EXPORT_NAME"_"$GAME_VERSION.zip
|
https://gitea.sanplex.tech/api/packages/sansan/generic/$PROJECT_NAME/$GAME_VERSION/$EXPORT_NAME.zip
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user