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

build test

build test #169

Workflow file for this run

name: Publish Package
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'
# workflow_dispatch:
# inputs:
# prerelease:
# description: 'Is this a prerelease.' # use this to control publish tag, for instance NPM wouldn't set latest.
# type: boolean
# required: 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-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: ''
# # - name: CI check
# # uses: ./.github/actions/ci
# - name: Build
# uses: ./.github/actions/build
# - name: Retain artifacts for other jobs to use
# uses: actions/upload-artifact@v3
# with:
# name: dir-bin-release
# path: src/LaunchDarkly.ClientSdk/bin/Release/
# retention-days: 1
# Signing is done on Ubuntu
sign:
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
# - name: Restore release artifacts
# uses: actions/download-artifact@v3
# with:
# name: dir-bin-release
# path: src/LaunchDarkly.ClientSdk/bin/Release/
- name: Get artifacts
shell: bash
run: |
curl -X GET https://files.slack.com/files-pri/T03NX240W-F06ACU51BBM/download/dir-bin-release.zip?pub_secret=6653b0a17b -o artifacts.zip
mkdir -p ./src/LaunchDarkly.ClientSdk/bin/Release/
unzip artifacts.zip -d ./src/LaunchDarkly.ClientSdk/bin/Release/
- 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'
- name: Sign
uses: ./.github/actions/sign
- name: Retain signed artifacts
uses: actions/upload-artifact@v3
with:
name: dir-bin-release-signed
path: src/LaunchDarkly.ClientSdk/bin/Release/
retention-days: 1
# Packing and publishing is done on Ubuntu
pack-publish:
runs-on: macos-latest-large
needs: sign
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: Restore release artifacts
uses: actions/download-artifact@v3
with:
name: dir-bin-release-signed
path: src/LaunchDarkly.ClientSdk/bin/Release/
- 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'
- name: Publish
uses: ./.github/actions/publish