Skip to content

Update 03-update-assets.yml #5

Update 03-update-assets.yml

Update 03-update-assets.yml #5

on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/tags
#tags:
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Upload Release Asset
jobs:
build:
name: Upload Release Asset for ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
matrix:
os: [windows-latest]
build_type: [Release]
steps:
- name: Checkout self
uses: actions/checkout@v2
- name: Download pre-packed asset
uses: actions/download-artifact@v4
with:
# name: ProMesh4-Installer-${{matrix.os}}
name: ProMesh4-Installer-windows-latest
path: assets
github-token: ${{ github.token }}
repository: ${{ github.repository }}
run-id: 11026224064
- name: Download pre-packed artifact
run: ls assets
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
asset_path: ./assets/ProMesh4-Installer-${{matrix.os}}.zip
asset_name: ProMesh4-Installer-${{matrix.os}}.zip
asset_content_type: application/zip