-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (46 loc) · 2.01 KB
/
Copy pathMakefile
File metadata and controls
54 lines (46 loc) · 2.01 KB
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
VERSION ?= patch
NPMRC ?= listenfirst
AWS_ACCESS_KEY_ID ?= $(shell aws configure get aws_access_key_id)
AWS_SECRET_ACCESS_KEY ?= $(shell aws configure get aws_secret_access_key)
CDN_DISTRIBUTION_ID ?= E36SQ3NOD1A0TN
OSX_KEYCHAIN ?= ~/Library/Keychains/ListenFirst.keychain-db
OSX_NOTARY_TEAM_ID ?= GX2F4ZZFBZ
OSX_NOTARY_APPLE_ID ?= mike.stanley@listenfirstmedia.com
# This is the primary way to release the lf-cli. Pushing the v* tags to the master branch
# will trigger the Release process Github Action (./github/workflow/release.yml)
release:
npm version $(VERSION)
git push origin master --tags
# This was retained for prosperity. This process has been automated in Github Actions and
# these manual steps are deprecated
manual-release: release-npm release-tarball release-win release-macos
release-npm:
npmrc $(NPMRC)
npm publish
release-tarball:
rm -rf tmp/lf-cli dist/lf-cli
npx oclif-dev pack
AWS_ACCESS_KEY_ID=$(AWS_ACCESS_KEY_ID) AWS_SECRET_ACCESS_KEY=$(AWS_SECRET_ACCESS_KEY) npx oclif-dev publish
release-win:
rm -rf tmp/win* dist/win*
npx oclif-dev pack:win
AWS_ACCESS_KEY_ID=$(AWS_ACCESS_KEY_ID) AWS_SECRET_ACCESS_KEY=$(AWS_SECRET_ACCESS_KEY) npx oclif-dev publish:win
release-macos:
rm -rf tmp/mac* dist/mac*
OSX_KEYCHAIN=$(OSX_KEYCHAIN) npx oclif-dev pack:macos
OSX_KEYCHAIN=$(OSX_KEYCHAIN) xcrun notarytool submit --team-id $(OSX_NOTARY_TEAM_ID) --apple-id=$(OSX_NOTARY_APPLE_ID) --password=$(shell security find-generic-password -w -s notarytool) --progress --wait ./dist/macos/lf-cli-v*.pkg
AWS_ACCESS_KEY_ID=$(AWS_ACCESS_KEY_ID) AWS_SECRET_ACCESS_KEY=$(AWS_SECRET_ACCESS_KEY) npx oclif-dev publish:macos
invalidate-cdn:
aws --profile lfmprod cloudfront create-invalidation \
--distribution-id $(CDN_DISTRIBUTION_ID) \
--paths \
"/lf-cli-darwin-x64.tar.gz" \
"/lf-cli-linux-arm.tar.gz" \
"/lf-cli-linux-x64.tar.gz" \
"/lf-cli-win32-x64.tar.gz" \
"/lf-cli-win32-x86.tar.gz" \
"/lf-cli-x64.exe" \
"/lf-cli-x86.exe" \
"/lf-cli.pkg" \
"/lf-cli.tar.gz" \
"/version"