From c101637b9f91002dfd3f2f85ed64e72cd89ab3ca Mon Sep 17 00:00:00 2001 From: PJ568 Date: Tue, 6 Feb 2024 15:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Release.yml | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 56fb2ec..90dc505 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -10,7 +10,16 @@ jobs: permissions: write-all name: Export Software steps: - - name: Get key + - 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 env: GIT_NAME: PJ-568 GIT_EMAIL: ${{ secrets.GIT_EMAIL }} @@ -19,20 +28,8 @@ jobs: 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://$GH_TOKEN@$REPO /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/ + git clone https://$GH_TOKEN@$REPO ./key - name: Set up JDK 17 uses: actions/setup-java@v3 @@ -43,12 +40,6 @@ jobs: - name: Setup Android SDK uses: android-actions/setup-android@v3 - - name: install wine - id: wine_install - run: | - sudo apt install wine64 - echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT - - name: export software id: export # Use latest version (see releases for all versions) @@ -61,7 +52,7 @@ jobs: archive_output: true wine_path: ${{ steps.wine_install.outputs.WINE_PATH }} - - name: create release + - name: Create release uses: ncipollo/release-action@v1 with: token: ${{ secrets.TOKEN }}