Skip to content

Commit

Permalink
test (#17)
Browse files Browse the repository at this point in the history
* test

* a

* a

* a

* a

* a

* a

* a

* a
  • Loading branch information
yonilerner authored Jan 11, 2024
1 parent 0cfd61d commit 8d9df6f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}}
18 changes: 12 additions & 6 deletions RetakesAllocator/release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,27 @@

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
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/**
tree ./bin

0 comments on commit 8d9df6f

Please sign in to comment.