diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02a1225..d82998f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: 7.0.x - - name: Restore dependencies + - name: Restore Dependencies run: dotnet restore - name: Build shell: bash @@ -29,18 +29,18 @@ jobs: run: chmod +x release.bash; ./release.bash - name: Publish Archive for Branch uses: actions/upload-artifact@v4 - if: !startsWith(github.ref, 'refs/tags/') + if: "!startsWith(github.ref, 'refs/tags/')" with: - name: RetakesAllocator-${{github.sha}}.zip - path: ${{github.workspace}}/RetakesAllocator/bin/Release/RetakesAllocator.zip + name: RetakesAllocator-${{github.sha}} + path: ${{github.workspace}}/RetakesAllocator/bin/Release/RetakesAllocator - name: Publish Archive for Release uses: actions/upload-artifact@v4 if: startsWith(github.ref, 'refs/tags/') with: - name: RetakesAllocator-${{github.ref_name}}.zip - path: ${{github.workspace}}/RetakesAllocator/bin/Release/RetakesAllocator.zip + name: RetakesAllocator-${{github.ref_name}} + path: ${{github.workspace}}/RetakesAllocator/bin/Release/RetakesAllocator - name: Attach Release Files uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: RetakesAllocator-${{github.ref_name}}.zip + files: RetakesAllocator-${{github.ref_name}} diff --git a/RetakesAllocator/release.bash b/RetakesAllocator/release.bash index 0927d8f..d2c4cd4 100644 --- a/RetakesAllocator/release.bash +++ b/RetakesAllocator/release.bash @@ -2,7 +2,7 @@ TARGET_NAME="RetakesAllocator" TARGET_DIR="./bin/Release/net7.0" -NEW_DIR="$TARGET_DIR/../$TARGET_NAME" +NEW_DIR="./bin/Release/RetakesAllocator" echo $TARGET_NAME echo $TARGET_DIR @@ -10,13 +10,19 @@ echo $NEW_DIR ls $TARGET_DIR/** -echo mkdir -p $NEW_DIR -mkdir -p $NEW_DIR +#echo mkdir -p $NEW_DIR +#mkdir -p $NEW_DIR +echo cp -r $TARGET_DIR $NEW_DIR +cp -r $TARGET_DIR $NEW_DIR +echo rm -rf "$NEW_DIR/runtimes" +rm -rf "$NEW_DIR/runtimes" +echo mkdir "$NEW_DIR/runtimes" +mkdir "$NEW_DIR/runtimes" echo cp -rf "$TARGET_DIR/runtimes/linux-x64" "$NEW_DIR/runtimes" cp -rf "$TARGET_DIR/runtimes/linux-x64" "$NEW_DIR/runtimes" echo cp -rf "$TARGET_DIR/runtimes/win-x64" "$NEW_DIR/runtimes" cp -rf "$TARGET_DIR/runtimes/win-x64" "$NEW_DIR/runtimes" -echo zip -r "$TARGET_NAME.zip" "$NEW_DIR/" -zip -r "./bin/Release/$TARGET_NAME.zip" "$NEW_DIR/" +#echo zip -r "$TARGET_NAME.zip" "$NEW_DIR/" +#zip -r "./bin/Release/$TARGET_NAME.zip" "$NEW_DIR/" -ls ./bin/** \ No newline at end of file +tree ./bin \ No newline at end of file