diff --git a/.github/workflows/sync_client.yml b/.github/workflows/sync_client.yml index 55d91b0..8c46f83 100644 --- a/.github/workflows/sync_client.yml +++ b/.github/workflows/sync_client.yml @@ -40,21 +40,20 @@ jobs: echo "VERSION=$LATEST" >> $GITHUB_ENV echo "DIST=${GITHUB_WORKSPACE}/Client" >> $GITHUB_ENV + echo "DATE=$(date "+%Y/%m/%d %H:%M:%S")" >> $GITHUB_ENV fi - name: Upload to REPO + uses: stefanzweifel/git-auto-commit-action@v4.16.0 if: ${{ env.VERSION != '' }} - run: | - git config --global user.email "${{ env.EMAIL }}" - git config --global user.name "${{ env.USERNAME }}" - git add . - git commit -m "Sync Client to V${{ env.VERSION }} by Github Actions, $(date "+%Y/%m/%d %H:%M:%S")" - git push - rm -f ${{ env.DIST }}/README.md - + with: + commit_message: Sync WGCF to V${{ env.VERSION }} by Github Actions, ${{ env.DATE }} + - name: Release binaries uses: softprops/action-gh-release@v1 if: ${{ env.VERSION != '' }} with: tag_name: CloudFlare_Client_v${{ env.VERSION }} - files: ${{ env.DIST }}/* + files: | + !${{ env.DIST }}/README.md + ${{ env.DIST }}/*