upload file
This commit is contained in:
@@ -220,12 +220,14 @@ jobs:
|
|||||||
mv ./README ./artifacts/README.txt
|
mv ./README ./artifacts/README.txt
|
||||||
cd ./artifacts
|
cd ./artifacts
|
||||||
tar -czf vnt-$TARGET-$TAG.tar.gz *
|
tar -czf vnt-$TARGET-$TAG.tar.gz *
|
||||||
|
mkdir upload_file
|
||||||
|
mv vnt-$TARGET-$TAG.tar.gz ./upload_file/
|
||||||
- name: Archive artifact
|
- name: Archive artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: vnt-cli-${{ matrix.TARGET }}
|
name: vnt-cli-${{ matrix.TARGET }}
|
||||||
path: |
|
path: |
|
||||||
./artifacts
|
./artifacts/upload_file
|
||||||
# deploys to github releases on tag
|
# deploys to github releases on tag
|
||||||
deploy:
|
deploy:
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
@@ -235,7 +237,6 @@ jobs:
|
|||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: vnt-cli-${{ matrix.TARGET }}
|
|
||||||
path: ./artifacts
|
path: ./artifacts
|
||||||
- name: List
|
- name: List
|
||||||
run: find ./artifacts
|
run: find ./artifacts
|
||||||
@@ -243,7 +244,7 @@ jobs:
|
|||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.YOURTOKEN }}
|
repo_token: ${{ secrets.YOURTOKEN }}
|
||||||
file: ./artifacts/*.tar.gz
|
file: ./artifacts/**/*.tar.gz
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ github.ref }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
file_glob: true
|
file_glob: true
|
||||||
Reference in New Issue
Block a user