From 6ff0bdde64ee93355d6aff2e8abecb24dc733d70 Mon Sep 17 00:00:00 2001 From: Mirco Bianchini <57708659+sonomirco@users.noreply.github.com> Date: Thu, 9 Dec 2021 15:01:00 +1100 Subject: [PATCH] Update create-package-artifact.yml --- .github/workflows/create-package-artifact.yml | 44 +++++++++++++------ 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/.github/workflows/create-package-artifact.yml b/.github/workflows/create-package-artifact.yml index 9bb731a..be49b9b 100644 --- a/.github/workflows/create-package-artifact.yml +++ b/.github/workflows/create-package-artifact.yml @@ -59,23 +59,41 @@ jobs: run: |- cat <> installation.txt ### For Grasshopper - Copy the MMLibGh folder into the local folder - ``C:\Users\"your username"\AppData\Roaming\Grasshopper\Libraries`` + Copy the MMLibGh folder into the local folder: + C:\Users\"your username"\AppData\Roaming\Grasshopper\Libraries ### For Dynamo in Revit - Copy the MMLibDyn folder into the local folder - ``C:\Users\{USER}\AppData\Roaming\Dynamo\Dynamo {TARGET}\{VERSION}\pakages`` + Copy the MMLibDyn folder into the local folder: + C:\Users\{USER}\AppData\Roaming\Dynamo\Dynamo {TARGET}\{VERSION}\pakages ### For Dynamo in Civil3D Copy the MMLibDyn folder into the local folder: - ``C:\Users\{USER}\AppData\Autodesk\C3D {VERSION}\Dynamo\{VERSION}\pakages`` - EOF + C:\Users\{USER}\AppData\Autodesk\C3D {VERSION}\Dynamo\{VERSION}\pakages + + - name: 📘 Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.bump-with-alpha.outputs.result }} + release_name: ${{ steps.bump-with-alpha.outputs.result }} + body: | + ## Title + + ## Body + + draft: false + prerelease: false - - name: Archive production artifacts - uses: actions/upload-artifact@v2 + - name: 💾 7Zip library + run: 7z a -t7z -mx=9 PipelineLib-${{ steps.bump-with-alpha.outputs.result }}.7z ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\library ./images installation.txt + + - name: 📤 Upload library to release + uses: svenstaro/upload-release-action@v1-release with: - name: pipeline-pack - path: | - ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\library - images/* - installation.txt + repo_token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ steps.bump-with-alpha.outputs.result }} + file: PipelineLib-${{ steps.bump-with-alpha.outputs.result }}.7z + asset_name: PipelineLib-${{ steps.bump-with-alpha.outputs.result }}.7z + overwrite: true