-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into account-anbinden
- Loading branch information
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build Avalonia on Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd PWManager.Avalonia | ||
dotnet restore | ||
- name: Build | ||
run: | | ||
cd PWManager.Avalonia | ||
dotnet build |
2 changes: 1 addition & 1 deletion
2
.github/workflows/build_on_pr.yaml → .github/workflows/build_cli_on_pr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build on Pull Request | ||
name: Build CLI on Pull Request | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
read -p "Enter version number: " version | ||
read -p "Enter message: " message | ||
|
||
git tag -a $version -m "$message" | ||
git push origin $version | ||
|
||
rm -rf bin | ||
mkdir bin | ||
|
||
cd PWManager.CLI | ||
rm -rf bin/Release | ||
|
||
dotnet restore | ||
|
||
dotnet build --runtime linux-x64 --configuration Release | ||
dotnet build --runtime win-x64 --configuration Release | ||
|
||
cd bin/Release/net8.0 | ||
tar -czvf cli-linux-x64.tar.gz linux-x64 | ||
tar -czvf cli-win-x64.tar.gz win-x64 | ||
|
||
sha256sum cli-linux-x64.tar.gz >> checksums.txt | ||
sha256sum cli-win-x64.tar.gz >> checksums.txt | ||
|
||
rm -rf win-x64 | ||
rm -rf linux-x64 | ||
|
||
mv * ../../../../bin |