chore: Add github CI and release-please. #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Package | |
on: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
run_tests: | |
description: 'If true, run unit tests, otherwise skip them.' | |
required: false | |
type: boolean | |
default: true | |
dry_run: | |
description: 'Is this a dry run. If so no package will be published.' | |
type: boolean | |
required: true | |
workflow_call: | |
inputs: | |
run_tests: | |
description: 'If true, run unit tests, otherwise skip them.' | |
required: false | |
type: boolean | |
default: true | |
dry_run: | |
description: 'Is this a dry run. If so no package will be published.' | |
type: boolean | |
required: true | |
jobs: | |
# Building is done on mac runner due to xcode build dependencies | |
build: | |
runs-on: macos-13 | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # If you only need the current version keep this | |
sign-dlls: | |
runs-on: ubuntu-latest | |
needs: build | |
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/release-secrets@release-secrets-v1.0.1 | |
name: Get secrets | |
with: | |
aws_assume_role: ${{ vars.AWS_ROLE_ARN }} | |
- name: CI check | |
uses: ./.github/actions/ci | |
with: | |
run_tests: ${{ inputs.run_tests }} | |
- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.1 | |
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' | |
s3_path_pairs: 'launchdarkly-releaser/dotnet/LaunchDarkly.ClientSdk.snk = LaunchDarkly.ClientSdk.snk' | |
- name: Release Build | |
uses: ./.github/actions/release-build | |
- name: Sign DLLs | |
uses: launchdarkly/gh-actions/actions/sign-dlls@rlamb/add-dll-sign-shared-action | |
with: | |
build_configuration_path: "src/LaunchDarkly.Logging.NLog/bin/Release/" | |
dll_name: 'LaunchDarkly.Logging.NLog.dll' | |
# - name: Publish Nupkg | |
# uses: ./.github/actions/publish | |
# with: | |
# dry_run: ${{ inputs.dry_run }} |