Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Merge pull request #348 from mcdonaldseanp/PA4644 #5

Merge pull request #348 from mcdonaldseanp/PA4644

Merge pull request #348 from mcdonaldseanp/PA4644 #5

Workflow file for this run

name: Release Jobs
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
release-unix:
runs-on: ubuntu-latest
steps:
- name: checkout current pr
uses: actions/checkout@v4
- name: run CMake and Make on Linux
uses: ./.github/actions/run_cmake_and_make
with:
cmake_extra_vars: all test install ARGS=-v
make_command: -DLEATHERMAN_SHARED=ON
- name: build release artifact for tags
if: startsWith(github.ref, 'refs/tags/')
run: tar czvf leatherman-dynamic.tar.gz `find /tmp/leatherman/dest -type f -print`
- name: upload release artifacts for tag
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: leatherman-dynamic.tar.gz
release-win:
runs-on: windows-latest
steps:
- name: checkout current pr
uses: actions/checkout@v4
- name: run CMake and Make on Windows
uses: ./.github/actions/run_win_cmake_and_make
- name: build release artifact for tags
if: startsWith(github.ref, 'refs/tags/')
run: 7z.exe a -t7z leatherman.7z C:\tools\leatherman\
- name: upload release artifacts for tag
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: leatherman.7z