This commit is contained in:
teasiu 2021-04-15 11:54:35 +08:00
parent fbf72180cb
commit 2e19e5f6c3
1 changed files with 18 additions and 28 deletions

View File

@ -115,6 +115,7 @@ jobs:
run: | run: |
echo "::set-output name=release_tag::$(date +"%Y.%m.%d-%H%M")" echo "::set-output name=release_tag::$(date +"%Y.%m.%d-%H%M")"
touch release.txt touch release.txt
echo "# hello slitaz!" > release.txt
echo "::set-output name=status::success" echo "::set-output name=status::success"
- name: SSH connection to Actions - name: SSH connection to Actions
@ -124,38 +125,27 @@ jobs:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
- name: Upload Release Asset2
id: upload-release-asset2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.tag.outputs.upload_url }}
asset_path: ./slitaz5.0-rolling-core32-cn.iso
asset_name: slitaz5.0-rolling-core32-cn.iso
asset_content_type: application/iso
- name: Upload Release Asset3
id: upload-release-asset3
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.tag.outputs.upload_url }}
asset_path: ./slitaz5-core64-cn-with-docker.iso
asset_name: slitaz5-core64-cn-with-docker.iso
asset_content_type: application/iso
- name: Upload Release Asset - name: Upload firmware to release
id: upload-release-asset uses: softprops/action-gh-release@v1
uses: actions/upload-release-asset@v1 if: steps.tag.outputs.status == 'success' && !cancelled()
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.tag.outputs.upload_url }} tag_name: ${{ steps.tag.outputs.release_tag }}
asset_path: ./slitaz5.0-rolling-core64-cn.iso body_path: release.txt
asset_name: slitaz5.0-rolling-core64-cn.iso files: slitaz-artifact/*
asset_content_type: application/iso
# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.tag.outputs.upload_url }}
# asset_path: ./slitaz5.0-rolling-core64-cn.iso
# asset_name: slitaz5.0-rolling-core64-cn.iso
# asset_content_type: application/iso
slitaz: slitaz:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04