|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
# Whenever a tag push matching pattern "v*" then run the job
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
tags:
|
|
|
|
@ -11,11 +10,30 @@ jobs:
|
|
|
|
|
permissions: write-all
|
|
|
|
|
name: Export Software
|
|
|
|
|
steps:
|
|
|
|
|
# Always include the checkout step so that
|
|
|
|
|
# your project is available for Godot to export
|
|
|
|
|
- name: Get key
|
|
|
|
|
env:
|
|
|
|
|
GIT_NAME: PJ-568
|
|
|
|
|
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
|
|
|
|
|
REPO: github.com/PJ-568/568_Clac_keystore
|
|
|
|
|
GH_TOKEN: ${{ secrets.P_TOKEN }}
|
|
|
|
|
run: |
|
|
|
|
|
git config --global user.name $GIT_NAME
|
|
|
|
|
git config --global user.email $GIT_EMAIL
|
|
|
|
|
echo '创建 tmp/:'
|
|
|
|
|
mkdir /home/runner/tmp
|
|
|
|
|
echo '克隆 keystore:'
|
|
|
|
|
git clone "https://$P_TOKEN@$REPO" -b key /home/runner/tmp/key
|
|
|
|
|
|
|
|
|
|
- name: checkout
|
|
|
|
|
uses: actions/checkout@v3.3.0
|
|
|
|
|
|
|
|
|
|
- name: Move key
|
|
|
|
|
run: |
|
|
|
|
|
echo '创建 key/:'
|
|
|
|
|
mkdir ./key
|
|
|
|
|
echo '复制 keystore:'
|
|
|
|
|
cp -u -r /home/runner/tmp/key/* ./key/
|
|
|
|
|
|
|
|
|
|
- name: Set up JDK 17
|
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
|
with:
|
|
|
|
|