diff --git a/.github/workflows/reader.yml b/.github/workflows/build.yml
similarity index 93%
rename from .github/workflows/reader.yml
rename to .github/workflows/build.yml
index d204b4d..ccfb6dd 100644
--- a/.github/workflows/reader.yml
+++ b/.github/workflows/build.yml
@@ -31,13 +31,13 @@ jobs:
one=$(expr ${version} % 10)
versionN=v$hun.$ten.$one
- echo ::set-output name=need_create_release::"$NEED_CREATE_RELEASE"
+ echo ::set-output name=need_create_release::"$CREATE_RELEASE"
echo ::set-output name=version_name::"$versionN"
- echo need_create_release=$NEED_CREATE_RELEASE
+ echo need_create_release=$CREATE_RELEASE
echo version_name=$versionN
- if [[ $NEED_CREATE_RELEASE == 'true' ]];then
+ if [ $NEED_CREATE_RELEASE == 'true' -a ${{ github.ref }} == 'refs/heads/master' ];then
echo ::set-output name=lanzou_folder_id::"1608604"
echo ::set-output name=lanzou_share_url::"https://fycz.lanzoui.com/b00ngso7e"
else
@@ -86,7 +86,7 @@ jobs:
echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 分享链接: ${{ steps.config.outputs.lanzou_share_url }}"
- name: Create Release
id: create_release
- if: ${{ steps.config.outputs.need_create_release == 'true' }}
+ if: ${{ steps.config.outputs.need_create_release == 'true' && github.ref == 'refs/heads/master' }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index ab232b8..2818960 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -16,7 +16,6 @@
-
diff --git a/.idea/misc.xml b/.idea/misc.xml
index bba6cb8..5f8ba6c 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -5,6 +5,7 @@