Skip to content

Commit

Permalink
fix: make sure each stuffs is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Windsander committed Aug 9, 2024
1 parent bd60781 commit b19def9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ jobs:
- name: Copy and rename changelog file
run: |
cd $GITHUB_WORKSPACE
if [ -f CHANGELOG.md ]; then
cp CHANGELOG.md CHANGELOG-${{ needs.setup_environment.outputs.version }}.md
fi
mkdir -p ./artifacts/temp
if [ -f README.md ]; then cp README.md ./artifacts/temp/; fi
if [ -f LICENSE ]; then cp LICENSE ./artifacts/temp/; fi
if [ -f CHANGELOG.md ]; then cp CHANGELOG.md ./artifacts/temp/CHANGELOG-${{ needs.setup_environment.outputs.version }}.md; fi
- name: Commit and push changes
env:
Expand All @@ -174,6 +175,7 @@ jobs:
git rm -rf .
cp ./artifacts/macos/* .
cp ./artifacts/windows/* .
cp ./artifacts/temp/* .
git add *.rb *.nupkg README.md LICENSE CHANGELOG-${{ needs.setup_environment.outputs.version }}.md
git commit -m "Deploy version ${{ needs.setup_environment.outputs.version }}"
git push origin deploy --force

0 comments on commit b19def9

Please sign in to comment.