Skip to content

Commit 72525bb

Browse files
Junaed/fssdk 12756 remove authenticode step (#417)
1 parent f7617ee commit 72525bb

1 file changed

Lines changed: 25 additions & 71 deletions

File tree

.github/workflows/csharp_release.yml

Lines changed: 25 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -144,67 +144,9 @@ jobs:
144144
if-no-files-found: error
145145
path: ./**/bin/Release/**/Optimizely*.dll
146146

147-
sign:
148-
name: Send DLLs for signing
149-
needs: [ variables, buildFrameworkVersions, buildStandard16, buildStandard20 ]
150-
runs-on: ubuntu-latest
151-
env:
152-
# TODO: Replace actual values
153-
SIGNING_SERVER_PRIVATE_KEY: ${{ secrets.SIGNING_SERVER_PRIVATE_KEY }}
154-
SIGNING_SERVER_HOST: ${{ secrets.SIGNING_SERVER_HOST }}
155-
SIGNING_SERVER_UPLOAD_PATH: /path/to/UPLOAD/directory
156-
SIGNING_SERVER_DOWNLOAD_PATH: /path/to/DOWNLOAD/directory
157-
steps:
158-
# TODO: Remove this when we're ready to automate
159-
- name: Temporarily halt progress
160-
run: exit 1
161-
- name: Download Framework DLLs
162-
uses: actions/download-artifact@v4
163-
with:
164-
name: unsigned-dlls-framework
165-
path: ./unsigned-dlls
166-
- name: Download NetStandard 1.6 DLLs
167-
uses: actions/download-artifact@v4
168-
with:
169-
name: unsigned-dlls-netstandard16
170-
path: ./unsigned-dlls
171-
- name: Download NetStandard 2.0 DLLs
172-
uses: actions/download-artifact@v4
173-
with:
174-
name: unsigned-dlls-netstandard20
175-
path: ./unsigned-dlls
176-
- name: Setup SSH
177-
uses: shimataro/ssh-key-action@v2
178-
with:
179-
key: $SIGNING_SERVER_PRIVATE_KEY
180-
- name: Send files to signing server
181-
run: scp -r ./unsigned-dlls $SIGNING_SERVER_HOST:$SIGNING_SERVER_UPLOAD_PATH
182-
- name: Wait for artifact to be published
183-
run: |
184-
for i in {1..60}; do
185-
# Replace with actual path
186-
if ssh $SIGNING_SERVER_HOST "ls $SIGNING_SERVER_DOWNLOAD_PATH"; then
187-
exit 0
188-
fi
189-
sleep 10
190-
done
191-
exit 1
192-
- name: Download signed files
193-
run: |
194-
mkdir ./signed-dlls
195-
scp -r $SIGNING_SERVER_HOST:$SIGNING_SERVER_DOWNLOAD_PATH ./signed-dlls
196-
- name: Delete signed files from server
197-
run: ssh $SIGNING_SERVER_HOST "rm -rf $SIGNING_SERVER_DOWNLOAD_PATH/*"
198-
- name: Upload signed files
199-
uses: actions/upload-artifact@v4
200-
with:
201-
name: signed-dlls
202-
if-no-files-found: error
203-
path: ./signed-dlls
204-
205147
pack:
206148
name: Pack NuGet package
207-
needs: [ variables, sign ]
149+
needs: [ variables, buildFrameworkVersions, buildStandard16, buildStandard20 ]
208150
runs-on: ubuntu-latest
209151
env:
210152
VERSION: ${{ needs.variables.outputs.semanticVersion }}
@@ -217,26 +159,38 @@ jobs:
217159
run: |
218160
sudo apt update
219161
sudo apt install -y mono-devel
220-
- name: Download NuGet files
162+
- name: Setup NuGet
163+
uses: nuget/setup-nuget@v2
164+
- name: Download Framework DLLs
221165
uses: actions/download-artifact@v4
222166
with:
223-
name: signed-dlls
224-
path: ./signed-dlls
167+
name: unsigned-dlls-framework
168+
path: ./dlls
169+
- name: Download NetStandard 1.6 DLLs
170+
uses: actions/download-artifact@v4
171+
with:
172+
name: unsigned-dlls-netstandard16
173+
path: ./dlls
174+
- name: Download NetStandard 2.0 DLLs
175+
uses: actions/download-artifact@v4
176+
with:
177+
name: unsigned-dlls-netstandard20
178+
path: ./dlls
225179
- name: Organize files
226180
run: |
227-
pushd ./signed-dlls
181+
pushd ./dlls
228182
# Move all dlls to the root directory
229-
find . -type f -name "*.dll" -exec mv {} .
183+
find . -type f -name "*.dll" -exec mv {} . \;
230184
popd
231185
# Create directories
232186
mkdir -p nuget/lib/net35/ nuget/lib/net40/ nuget/lib/net45/ nuget/lib/netstandard1.6/ nuget/lib/netstandard2.0/
233187
pushd ./nuget
234188
# Move files to directories
235-
mv ../signed-dlls/OptimizelySDK.Net35.dll lib/net35/
236-
mv ../signed-dlls/OptimizelySDK.Net40.dll lib/net40/
237-
mv ../signed-dlls/OptimizelySDK.dll lib/net45/
238-
mv ../signed-dlls/OptimizelySDK.NetStandard16.dll lib/netstandard1.6/
239-
mv ../signed-dlls/OptimizelySDK.NetStandard20.dll lib/netstandard2.0/
189+
mv ../dlls/OptimizelySDK.Net35.dll lib/net35/
190+
mv ../dlls/OptimizelySDK.Net40.dll lib/net40/
191+
mv ../dlls/OptimizelySDK.dll lib/net45/
192+
mv ../dlls/OptimizelySDK.NetStandard16.dll lib/netstandard1.6/
193+
mv ../dlls/OptimizelySDK.NetStandard20.dll lib/netstandard2.0/
240194
popd
241195
- name: Create nuspec
242196
# Uses env.VERSION in OptimizelySDK.nuspec.template
@@ -259,8 +213,8 @@ jobs:
259213
name: Publish package to NuGet after reviewing the artifact
260214
needs: [ variables, pack ]
261215
runs-on: ubuntu-latest
262-
# Review the `nuget-package` artifact ensuring the dlls are
263-
# organized and signed before approving.
216+
# Review the `nuget-package` artifact ensuring the dlls are
217+
# organized before approving.
264218
environment: 'i-reviewed-nuget-package-artifact'
265219
env:
266220
VERSION: ${{ needs.variables.outputs.semanticVersion }}

0 commit comments

Comments
 (0)