From 339f12384ad5f9f3e6f7d00761be50ada8c802d3 Mon Sep 17 00:00:00 2001 From: EdisonJwa Date: Tue, 16 Aug 2022 00:08:58 +0900 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 56d7d84..42d9fb3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,13 +20,13 @@ jobs: sudo apt-get update -q sudo apt-get install qt5-default qttools5-dev-tools -y -q - - env: - TG_API: ${{ secrets.TG_API }} - TG_GROUP_ID: ${{ secrets.TG_GROUP_ID }} - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' - run: | - echo "TG_API=${TG_API}" >> $GITHUB_ENV - echo "TG_GROUP_ID=${TG_GROUP_ID}" >> $GITHUB_ENV +# - env: +# TG_API: ${{ secrets.TG_API }} +# TG_GROUP_ID: ${{ secrets.TG_GROUP_ID }} +# if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' +# run: | +# echo "TG_API=${TG_API}" >> $GITHUB_ENV +# echo "TG_GROUP_ID=${TG_GROUP_ID}" >> $GITHUB_ENV - name: Build package run: | @@ -49,6 +49,16 @@ jobs: with: name: Chinese_Translation_zh-CN.ts3_translation path: Chinese_Translation_zh-CN.ts3_translation + + - name: Setup Ossutil + uses: manyuanrong/setup-ossutil@v2.0 + with: + endpoint: ${{ secrets.OSS_ENDPOINT }} + access-key-id: ${{ secrets.OSS_KEY_ID }} + access-key-secret: ${{ secrets.OSS_KEY_SECRET }} + + - name: Upload + run: ossutil cp Chinese_Translation_zh-CN.ts3_translation oss://edison-storage/ - name: Group notify if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'