Ver código fonte

fix assets releasing workflow

wangweimin 4 anos atrás
pai
commit
7302c9ca51
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      .github/workflows/release.yml

+ 4 - 4
.github/workflows/release.yml

@@ -41,15 +41,15 @@ jobs:
           git config --global credential.helper '!f() { sleep 1; echo "username=${{ github.actor }}"; echo "password=${GH_TOKEN}"; }; f'
 
           git clone https://github.com/wang0618/pywebio-assets.git
-          rm -rf pywebio-asset/*
-          cp -r pywebio/html/* pywebio-asset
+          rm -rf pywebio-assets/*
+          cp -r pywebio/html/* pywebio-assets
 
           cd pywebio-asset
           git add .
           git commit -m "Build from https://github.com/wang0618/PyWebIO/commit/$GITHUB_SHA"
           git tag $RELEASE_VERSION
 
-          git push -f -u origin --tags || exit 0
-          git push -f -u origin || exit 0
+          git push -u origin --tags
+          git push -u origin
         env:
           GH_TOKEN: ${{ secrets.ASSET_REPO_TOKEN }}