Skip to content

Commit bc1d6b0

Browse files
committed
fix release pipeline
1 parent 62211f5 commit bc1d6b0

1 file changed

Lines changed: 43 additions & 6 deletions

File tree

.github/workflows/release.yaml

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ env:
1313
NUGET_REGISTRY_USERNAME: devpikachu
1414

1515
jobs:
16-
build:
17-
name: Build & Release
16+
build-durable:
17+
name: Build Durable
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
@@ -35,11 +35,48 @@ jobs:
3535
- name: Bootstrap
3636
run: bash bootstrap.sh
3737
- name: Build
38-
run: |
39-
bash build.sh --target Archive --general-config buildConfig.durable.json --general-project DurableBetterProspecting --general-version $GITHUB_REF_NAME
40-
bash build.sh --target Archive --general-config buildConfig.original.json --general-project DurableBetterProspecting --general-version $GITHUB_REF_NAME
38+
run: bash build.sh --target Archive --general-config buildConfig.durable.json --general-project DurableBetterProspecting --general-version $GITHUB_REF_NAME
39+
- name: Upload artifact
40+
uses: actions/upload-artifact@v7
41+
with:
42+
name: durablebetterprospecting
43+
path: out/*.zip
44+
build-original:
45+
name: Build Original
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v6
50+
- name: Setup .NET SDK 10
51+
uses: actions/setup-dotnet@v5
52+
with:
53+
dotnet-version: ${{ env.DOTNET_VERSION }}
54+
- name: Add NuGet repository
55+
run: dotnet nuget add source --name github --username $NUGET_REGISTRY_USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text $NUGET_REGISTRY_URL
56+
- name: Restore dependencies from cache
57+
uses: actions/cache@v5
58+
with:
59+
key: deps-${{ hashFiles('bootstrap.sh') }}
60+
path: |
61+
vendor/vs.tar.gz
62+
vendor/*.zip
63+
- name: Bootstrap
64+
run: bash bootstrap.sh
65+
- name: Build
66+
run: bash build.sh --target Archive --general-config buildConfig.original.json --general-project DurableBetterProspecting --general-version $GITHUB_REF_NAME
67+
- name: Upload artifact
68+
uses: actions/upload-artifact@v7
69+
with:
70+
name: betterprospecting
71+
path: out/*.zip
72+
release:
73+
name: Release
74+
runs-on: ubuntu-latest
75+
steps:
76+
- name: Download artifacts
77+
uses: actions/download-artifact@v8
4178
- name: Release
4279
uses: softprops/action-gh-release@v2
4380
with:
4481
draft: true
45-
files: out/*.zip
82+
files: '*.zip'

0 commit comments

Comments
 (0)