You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
568_Calc/.github/workflows/Release.yml

63 lines
1.9 KiB

1 year ago
on:
push:
tags:
- "v*"
jobs:
export_game:
# Always use ubuntu-latest for this action
runs-on: ubuntu-latest
permissions: write-all
name: Export Software
steps:
10 months ago
- name: Install wine
id: wine_install
run: |
sudo apt install wine64
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
- name: Checkout
uses: actions/checkout@v3.3.0
- name: Get keystore
10 months ago
env:
GIT_NAME: PJ-568
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
10 months ago
REPO: github.com/PJ-568/568_Calc_keystore
10 months ago
GH_TOKEN: ${{ secrets.TOKEN }}
10 months ago
run: |
git config --global user.name $GIT_NAME
git config --global user.email $GIT_EMAIL
echo '克隆 keystore'
10 months ago
git clone https://$GH_TOKEN@$REPO ./key
10 months ago
1 year ago
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: export software
id: export
# Use latest version (see releases for all versions)
10 months ago
uses: firebelley/godot-export@v5.2.1
1 year ago
with:
12 months ago
# Defining all the required inputs
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2.1/Godot_v4.2.1-stable_linux.x86_64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.2.1/Godot_v4.2.1-stable_export_templates.tpz
1 year ago
relative_project_path: ./
10 months ago
relative_export_path: ./Release/
1 year ago
archive_output: true
10 months ago
wine_path: ${{ steps.wine_install.outputs.WINE_PATH }}
1 year ago
10 months ago
- name: Create release
12 months ago
uses: ncipollo/release-action@v1
1 year ago
with:
token: ${{ secrets.TOKEN }}
generateReleaseNotes: true
tag: ${{ github.ref_name }}
10 months ago
# artifacts: "Release/Android/*.apk,Release/Linux/*,Release/Web/*,Release/Windows/*"
artifacts: ./Release/*