Skip to content

Commit

Permalink
Update release workflow use git clone directly
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Feb 25, 2023
1 parent e77f800 commit ed7fd00
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,24 @@ jobs:
cp ${GITHUB_WORKSPACE}/../Qt/5.15.2/msvc2019_64/plugins/imageformats/qsvg.dll ${GITHUB_WORKSPACE}/imageformats/qsvg.dll
7z a Dust3D-win32-x86_64.zip -r ${GITHUB_WORKSPACE}/imageformats/
7z x Dust3D-win32-x86_64.zip -odust3d-${{ github.event.workflow_run.head_branch }}
cp Dust3D-win32-x86_64.zip dust3d-latest-preview.zip
git clone https://${{ secrets.GITHUB_TOKEN }}@github.com/huxingyi/huxingyi.github.io.git
cd huxingyi.github.io
cp ../Dust3D-win32-x86_64.zip download/dust3d-latest-preview.zip
if git diff --name-only HEAD | grep -q "download/dust3d-latest-preview.zip"; then
git config --global user.email ""
git config --global user.name "bot"
git add download/dust3d-latest-preview.zip
timestamp=$(TZ=":Australia/Sydney" date)
git commit -m "Update latest windows build at ${timestamp}"
git push origin HEAD
fi
cd ../
shell: bash
- name: Upload zip
uses: actions/upload-artifact@v3
with:
name: dust3d-${{ github.event.workflow_run.head_branch }}
path: dust3d-${{ github.event.workflow_run.head_branch }}/
- name: Push latest build
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
with:
source_file: 'dust3d-latest-preview.zip'
destination_repo: 'huxingyi/huxingyi.github.io'
destination_folder: 'download'
user_email: ''
user_name: 'bot'
commit_message: 'Update latest windows build'
macos-upload:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: macos-latest
Expand Down

0 comments on commit ed7fd00

Please sign in to comment.