Skip to content

Commit

Permalink
Add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
instantiator committed Oct 8, 2023
1 parent 7c4ed5e commit 3f411e8
Showing 1 changed file with 40 additions and 17 deletions.
57 changes: 40 additions & 17 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,49 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
# - name: Enter lib directory
# run: cd ~/work/open-social-distributor/open-social-distributor/open-social-distributor-app
- name: Show path
run: pwd
# - name: Show full directory
# run: ls -laR
- name: Build
run: cd open-social-distributor-app && ./build-all.sh
# run: dotnet build --no-restore
# - name: Show full directory
# run: ls -laR

test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
- name: Show path
run: pwd
- name: Test
run: cd open-social-distributor-app && ./run-unit-tests.sh
# run: dotnet test --no-build --verbosity normal
# - uses: actions/cache@v3
# with:
# path: ~/.nuget/packages
# # Look to see if there is a cache hit for the corresponding requirements file
# key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
# restore-keys: |
# ${{ runner.os }}-nuget
# - name: Restore dependencies
# run: dotnet restore

release-cli:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
- name: Show path
run: pwd
- name: Build CLI
run: cd open-social-distributor-app && ./release-cli.sh
- name: Create release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
draft: true
fail_on_unmatched_files: true
body: |
This is a release of the Open Social Distributor CLI.
files: |
open-social-distributor-app/release/linux-x64/DistributionCLI
open-social-distributor-app/release/osx-x64/DistributionCLI
open-social-distributor-app/release/win-x64/DistributionCLI.exe
LICENSE
README.md

0 comments on commit 3f411e8

Please sign in to comment.