Skip to content

Commit

Permalink
Workflow for making separate release assets
Browse files Browse the repository at this point in the history
* This workflow makes different release assets for v19 and v18.2.
* Triggered on pushing a tag with a name that starts with "v"

Creates assets:

* link-{TAGNAME}.zip
* link-{TAGNAME}-v182.zip

#579
  • Loading branch information
Stefan Kruger committed Sep 7, 2023
1 parent c4d5959 commit 3b16003
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/make-link-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Create Dyalog Link Release and Upload Assets

# Trigger: push of tag starting with 'v'
on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Extract tag name
run: echo "REF_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Prepare Assets
run: |
mkdir -p build
cp -r StartupSession build/StartupSession
zip -r build/link-${{ env.REF_NAME }}.zip build/StartupSession
cp -r qse/StartupSession/Dyalog build/StartupSession
zip -r build/link-${{ env.REF_NAME }}-v182.zip build/StartupSession
- name: Create and Upload Release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ github.ref }}
draft: true # Note: change this to false when fully operational
prerelease: true # Note: change this to false when fully operational
files: ./build/link-${{ env.REF_NAME }}.zip, ./build/link-${{ env.REF_NAME }}-v182.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3b16003

Please sign in to comment.