Skip to content

Commit

Permalink
refactor: Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
techman83 committed May 1, 2024
1 parent 35cc0a7 commit d7e319c
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,23 @@ on:
jobs:
build-release:
runs-on: ubuntu-latest

# container:
# image: mono:latest

steps:
# - name: Installing checkout/build dependencies
# run: apt-get update && apt-get install -y make wget
- uses: actions/checkout@v4

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7'

# - name: Installing runtime dependencies
# run: apt-get install -y xvfb

- name: Build ckan.exe and netkan.exe
run: ./build --configuration=Release
- name: Run tests
run: xvfb-run ./build test+only --configuration=Release --where="Category!=FlakyNetwork"

# - name: Publish ckan.dll to NuGet
# env:
# NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
# if: env.NUGET_API_KEY
# run: |
# curl -o nuget.exe -L 'https://dist.nuget.org/win-x86-commandline/v5.6.0/nuget.exe'
# mono nuget.exe push _build/out/CKAN/Release/bin/*.nupkg ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate

- uses: actions/upload-artifact@v4
with:
name: repack-unsigned
Expand All @@ -47,8 +34,6 @@ jobs:
build-dmg:
runs-on: ubuntu-latest
needs: build-release
# container:
# image: mono:latest
steps:
- uses: actions/checkout@v4
- name: OSX build dependencies
Expand All @@ -67,12 +52,8 @@ jobs:
build-deb:
runs-on: ubuntu-latest
needs: build-release
# container:
# image: mono:latest
steps:
- uses: actions/checkout@v4
# - name: Installing deb build dependencies
# run: apt-get update && apt-get install -y make lintian dpkg-dev gpg
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
Expand Down Expand Up @@ -102,12 +83,10 @@ jobs:
build-rpm:
runs-on: ubuntu-latest
needs: build-release
# container:
# image: mono:latest
steps:
- uses: actions/checkout@v4
- name: Installing rpm build dependencies
run: sudo apt-get install -y createrepo
run: sudo apt-get install -y createrepo-c
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
Expand Down

0 comments on commit d7e319c

Please sign in to comment.