Skip to content

Commit

Permalink
Add use of upload-release-asset GitHub Action
Browse files Browse the repository at this point in the history
Via this GitHub Action, it is possible to automatically upload the archive that contains the generate vcpkg archive.

See actions/upload-release-asset#34 for details.

See iit-danieli-joint-lab/idjl-software-dependencies-vcpkg#7 for a similar PR.
  • Loading branch information
traversaro authored Mar 21, 2020
1 parent 75f5a02 commit cc37543
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
push:
pull_request:
release:
types: [published]

jobs:
build:
Expand Down Expand Up @@ -58,3 +62,20 @@ jobs:
with:
name: vcpkg-robotology
path: C:/robotology/vcpkg

- name: Prepare release file
if: github.event_name == 'release'
shell: cmd
run: |
7z a vcpkg-robotology.zip C:\robotology
- name: Upload Release Asset
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./vcpkg-robotology.zip
asset_name: vcpkg-robotology.zip
asset_content_type: application/zip

0 comments on commit cc37543

Please sign in to comment.