Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
build test
Browse files Browse the repository at this point in the history
  • Loading branch information
tanderson-ld committed Dec 13, 2023
1 parent 2360447 commit 7961c3c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 39 deletions.
10 changes: 3 additions & 7 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ runs:
steps:
- uses: actions/checkout@v3

- name: Download signing tool
run: curl --silent https://one.digicert.com/signingmanager/api-ui/v1/releases/ -H "x-api-key:${{DIGICERT_HOST}}" | grep -o 'href=".*">' | sed 's/href="//;s/\/">//'

- name: Setup dotnet build tools
uses: actions/setup-dotnet@v3
with:
Expand All @@ -17,13 +20,6 @@ runs:
- name: Build DLLs for Release Configuration
run: dotnet build /restore /p:Configuration=Release src/LaunchDarkly.ClientSdk/LaunchDarkly.ClientSdk.csproj

- name: 'Get secrets from SSM'
uses: launchdarkly/gh-actions/actions/release-secrets
with:
# The AWS_ROLE_ARN needs added as a var to your repo.
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/production/common/releasing/digicert/host = DIGICERT_HOST,/production/common/releasing/digicert/api_key = DIGICERT_API_KEY,/production/common/releasing/digicert/client_cert_file_b64 = DIGICERT_CLIENT_CERT_FILE_B64,/production/common/releasing/digicert/client_cert_password = DIGICERT_CLIENT_CERT_PASSWORD,/production/common/releasing/digicert/code_signing_cert_sha1_hash = DIGICERT_CODE_SIGNING_CERT_SHA1_HASH'

# - id: publish
# name: Publish Package
# uses: ./.github/actions/publish
Expand Down
60 changes: 30 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: Run CI
on:
push:
branches: [ ta/sc-222947/maui-support-squashed-build-testing ]
paths-ignore:
- '**.md' #Do not need to run CI for markdown changes.
pull_request:
branches: [ ta/sc-222947/maui-support-squashed-build-testing ]
paths-ignore:
- '**.md'

# name: Run CI
# on:
# push:
# branches: [ main ]
# branches: [ ta/sc-222947/maui-support-squashed-build-testing ]
# paths-ignore:
# - '**.md' # Do not need to run CI for markdown changes.
# - '**.md' #Do not need to run CI for markdown changes.
# pull_request:
# branches: [ main ]
# branches: [ ta/sc-222947/maui-support-squashed-build-testing ]
# paths-ignore:
# - '**.md'

jobs:
ci-build:
runs-on: macos-latest-large
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # If you only need the current version keep this.
# # name: Run CI
# # on:
# # push:
# # branches: [ main ]
# # paths-ignore:
# # - '**.md' # Do not need to run CI for markdown changes.
# # pull_request:
# # branches: [ main ]
# # paths-ignore:
# # - '**.md'

# jobs:
# ci-build:
# runs-on: macos-latest-large
# permissions:
# id-token: write
# contents: read
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0 # If you only need the current version keep this.

- uses: launchdarkly/gh-actions/actions/[email protected]
name: Get secrets
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/production/common/releasing/digicert/host = DIGICERT_HOST,/production/common/releasing/digicert/api_key = DIGICERT_API_KEY,/production/common/releasing/digicert/client_cert_file_b64 = DIGICERT_CLIENT_CERT_FILE_B64,/production/common/releasing/digicert/client_cert_password = DIGICERT_CLIENT_CERT_PASSWORD,/production/common/releasing/digicert/code_signing_cert_sha1_hash = DIGICERT_CODE_SIGNING_CERT_SHA1_HASH'
# - uses: launchdarkly/gh-actions/actions/[email protected]
# name: Get secrets
# with:
# aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
# ssm_parameter_pairs: '/production/common/releasing/digicert/host = DIGICERT_HOST,/production/common/releasing/digicert/api_key = DIGICERT_API_KEY,/production/common/releasing/digicert/client_cert_file_b64 = DIGICERT_CLIENT_CERT_FILE_B64,/production/common/releasing/digicert/client_cert_password = DIGICERT_CLIENT_CERT_PASSWORD,/production/common/releasing/digicert/code_signing_cert_sha1_hash = DIGICERT_CODE_SIGNING_CERT_SHA1_HASH'

- uses: ./.github/actions/ci
# - uses: ./.github/actions/ci
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/production/common/releasing/digicert/host = DIGICERT_HOST,/production/common/releasing/digicert/api_key = DIGICERT_API_KEY,/production/common/releasing/digicert/client_cert_file_b64 = DIGICERT_CLIENT_CERT_FILE_B64,/production/common/releasing/digicert/client_cert_password = DIGICERT_CLIENT_CERT_PASSWORD,/production/common/releasing/digicert/code_signing_cert_sha1_hash = DIGICERT_CODE_SIGNING_CERT_SHA1_HASH'

- name: CI check
uses: ./.github/actions/ci
# - name: CI check
# uses: ./.github/actions/ci

- name: Publish Package
uses: ./.github/actions/publish
Expand Down

0 comments on commit 7961c3c

Please sign in to comment.