This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
58 lines (53 loc) · 2.22 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Publish Package
on:
push:
branches: [ ta/sc-222947/maui-support-squashed-build-testing-mac-runner-only ]
paths-ignore:
- '**.md' #Do not need to run CI for markdown changes.
pull_request:
branches: [ ta/sc-222947/maui-support-squashed-build-testing-mac-runner-only ]
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:
build-publish:
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'
# - name: CI check
# uses: ./.github/actions/ci
- name: Publish Package
uses: ./.github/actions/publish
with:
# signingHost: $DIGICERT_HOST
# signingApiKey: $DIGICERT_API_KEY
# certFileBase64: $DIGICERT_CLIENT_CERT_FILE_B64
# certPassword: $DIGICERT_CLIENT_CERT_PASSWORD
# certSha1Hash: $DIGICERT_CODE_SIGNING_CERT_SHA1_HASH
prerelease: ${{ inputs.prerelease }}
dry_run: ${{ inputs.dry_run }}
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: my-artifact
path: /Users/runner/hostedtoolcache/smctl/latest/
retention-days: 1