Add upload artifact function

This commit is contained in:
Loyalsoldier 2019-12-14 06:43:12 +08:00 committed by GitHub
parent aa363d2d75
commit 72d7e3f1b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,8 +127,15 @@ jobs:
echo "::set-env name=NAME::Released on $(date +%Y%m%d%H%M)" echo "::set-env name=NAME::Released on $(date +%Y%m%d%H%M)"
echo "::set-env name=TAG_NAME::$(date +%Y%m%d%H%M)" echo "::set-env name=TAG_NAME::$(date +%Y%m%d%H%M)"
- name: Release - name: Release dat files
uses: Ricky-Hao/action-release@master uses: Ricky-Hao/action-release@master
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ASSET_PATH: publish ASSET_PATH: publish
- name: Upload dat files
uses: actions/upload-artifact@master
if: success()
with:
name: dat_files
path: publish