update upload action

This commit is contained in:
andreas 2021-11-07 20:59:46 +01:00
parent 712829c7e4
commit 8add3fc9de
1 changed files with 6 additions and 7 deletions

View File

@ -34,7 +34,7 @@ jobs:
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip
pip install -U platformio pip install -U platformio
# Runs a single command using the runners shell # Runs a single command using the runners shell
- name: build package - name: build binaries
env: env:
VERSION: ${{ steps.version.outputs.version}} VERSION: ${{ steps.version.outputs.version}}
PLATFORMIO_BUILD_FLAGS: "-DGWRELEASEVERSION=${{ steps.version.outputs.version}}" PLATFORMIO_BUILD_FLAGS: "-DGWRELEASEVERSION=${{ steps.version.outputs.version}}"
@ -53,12 +53,11 @@ jobs:
prerelease: false prerelease: false
- name: Upload Release Asset - name: Upload Release Asset
id: upload-release-asset id: upload-release-asset
uses: actions/upload-release-asset@v1 uses: svenstaro/upload-release-action@2.2.1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PKG_NAME: m5stack-atom
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_path: ./pio/build/${{ env.PKG_NAME }}/${{ env.PKG_NAME }}-all.bin tag: ${{ github.ref }}
asset_name: ${{ env.PKG_NAME }}-all.bin file: ./.pio/build/*/*-all.bin
asset_content_type: application/octet-stream file_glob: true