Skip to content

update Release.yml

update Release.yml #2

Workflow file for this run

name: Create release
on:
push:
tags:
- 'v*'
jobs:
create-release-zips:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Find LabVIEW directories and create zips
id: create_zips
run: |
for dir in LabVIEW_*; do
if [ -d "$dir" ]; then
zip -r "${dir}.zip" "$dir"
fi
done
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload release assets
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '[".*.zip"]'