Skip to content

Commit

Permalink
ffix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
harayuu9 committed Mar 4, 2021
1 parent c83462e commit 3adbf7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:
- uses: actions/checkout@v2

- name: create hpp
run: |
dotnet run --project $GITHUB_WORKSPACE/project/Packaging $GITHUB_WORKSPACE/project
ZIP_FILE=$GITHUB_WORKSPACE/project
run: dotnet run --project $GITHUB_WORKSPACE/project/Packaging $GITHUB_WORKSPACE/project

- name: create release
id: create_release
Expand All @@ -33,6 +31,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.ZIP_FILE }}
asset_path: ./Release.zip
asset_name: LinqForCpp.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion project/Packaging/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private static void Main(string[] args)
var projectPath = args.Length == 0 ? "../../../../" : args[0] + "/";
projectPath = Path.GetFullPath(projectPath);
MakeRelease(projectPath);
ZipFile.CreateFromDirectory(projectPath + "Release", projectPath + "Release.zip");
ZipFile.CreateFromDirectory(projectPath + "Release", "Release.zip");
}
}
}

0 comments on commit 3adbf7a

Please sign in to comment.