Skip to content

Commit

Permalink
Fix automated releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jfantinhardesty committed Jul 19, 2024
1 parent ad341ff commit 873ab18
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build and Release

on:
push:
branches:
- 'fix-release-on-github'
tags:
- 'v*'

Expand Down Expand Up @@ -52,30 +54,33 @@ jobs:
- name: Package Artifacts Linux
if: ${{ Contains(matrix.os, 'ubuntu') }}
run: |
mv ../nx-lyve-cloud-plugin-build/cloudfuse_plugin/*.so cloudfuse_plugin.so
mkdir nx-lyve-cloud-plugin-${{ matrix.os }}
mv ../nx-lyve-cloud-plugin-build/cloudfuse_plugin/*.so nx-lyve-cloud-plugin-${{ matrix.os }}/cloudfuse_plugin.so
cp ./setup_fuse_allow_other.sh nx-lyve-cloud-plugin-${{ matrix.os }}/
zip -r nx-lyve-cloud-plugin-${{ matrix.os }}.zip nx-lyve-cloud-plugin-${{ matrix.os }}
- name: Package Artifacts Windows
shell: powershell
if: ${{ Contains(matrix.os, 'windows') }}
run: |
mv ..\nx-lyve-cloud-plugin-build\cloudfuse_plugin\Debug\cloudfuse_plugin.dll cloudfuse_plugin.dll
mkdir nx-lyve-cloud-plugin-windows
mv ..\nx-lyve-cloud-plugin-build\cloudfuse_plugin\Debug\cloudfuse_plugin.dll nx-lyve-cloud-plugin-windows/cloudfuse_plugin.dll
Compress-Archive nx-lyve-cloud-plugin-windows nx-lyve-cloud-plugin-windows.zip
- name: Archive production artifacts from Ubuntu
if: ${{ Contains(matrix.os, 'ubuntu') }}
uses: actions/upload-artifact@v4
with:
name: nx-lyve-cloud-plugin-${{ matrix.os }}
path: |
cloudfuse_plugin.so
setup_fuse_allow_other.sh
path: nx-lyve-cloud-plugin-${{ matrix.os }}.zip
if-no-files-found: error

- name: Archive production artifacts from Windows
if: ${{ Contains(matrix.os, 'windows') }}
uses: actions/upload-artifact@v4
with:
name: nx-lyve-cloud-plugin-windows
path: cloudfuse_plugin.dll
path: nx-lyve-cloud-plugin-windows.zip
if-no-files-found: error

release:
Expand Down

0 comments on commit 873ab18

Please sign in to comment.