diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b32fde3..378f293 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,9 +35,10 @@ jobs: configuration: ".github/workflows/configuration.json" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Generate Tag Name - id: tag_name - run: echo "TAG_VERSION_NAME=v${{ env.VERSION_NAME }}" >> $GITHUB_ENV + - name: Extract tag name + id: extract_tag + run: echo "TAG_VERSION_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + - name: Upload Apks id: upload_apk run: pip install requests markdown && python .github/workflows/upload.py diff --git a/.github/workflows/upload.py b/.github/workflows/upload.py index 9c54a68..74890d4 100644 --- a/.github/workflows/upload.py +++ b/.github/workflows/upload.py @@ -3,6 +3,7 @@ import requests import markdown import json +import time import os import re # 登录