Skip to content

Commit

Permalink
chore: 为新的更新方式做准备,修改自动化顺序,先发布apk包再发布release
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 committed Feb 21, 2023
1 parent 742f9af commit 6e5fea7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/pre-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ jobs:
# mkdir upload-ready-prod
# mv build/app/outputs/apk/release/app-release.apk upload-ready-prod/EOEFANS-${{ env.IMAGE_TAG }}.apk

# - name: Publish release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: upload-ready-prod/EOEFANS-${{ env.IMAGE_TAG }}.apk

# - name: upload to azure file for prod environment
# if: startsWith(github.ref, 'refs/tags/')
# uses: cahaseler/azure-fileshare-upload@v1.0.0
Expand All @@ -114,3 +108,10 @@ jobs:
# account_key: ${{ env.ACCOUNT_KEY }}
# share_name: ${{ env.SHARE_NAME_PROD }}
# source_dir: ${{ env.SOURCE_DIR_PROD }}

# - name: Publish release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: upload-ready-prod/EOEFANS-${{ env.IMAGE_TAG }}.apk

13 changes: 7 additions & 6 deletions .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ jobs:
mkdir upload-ready-prod
mv build/app/outputs/apk/release/app-release.apk upload-ready-prod/EOEFANS-${{ env.IMAGE_TAG }}.apk
- name: Publish release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: upload-ready-prod/EOEFANS-${{ env.IMAGE_TAG }}.apk

- name: upload to azure file for prod environment
if: startsWith(github.ref, 'refs/tags/')
uses: cahaseler/azure-fileshare-upload@v1.0.0
Expand All @@ -114,3 +108,10 @@ jobs:
account_key: ${{ env.ACCOUNT_KEY }}
share_name: ${{ env.SHARE_NAME_PROD }}
source_dir: ${{ env.SOURCE_DIR_PROD }}

- name: Publish release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: upload-ready-prod/EOEFANS-${{ env.IMAGE_TAG }}.apk

1 comment on commit 6e5fea7

@kazami139
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#10

Please sign in to comment.