-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
44 lines (32 loc) · 1.11 KB
/
Makefile
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
SHELL:=/usr/bin/env bash
FASTLANE ?= bundle exec fastlane
SECRETS_DIR ?= ../art-at-gvsu-secrets/ios
PIP ?= pip3
secrets:
cp -v $(SECRETS_DIR)/ArtAtGVSU/GoogleService-Info.plist ./ArtAtGVSU/GoogleService-Info.plist
cp -v $(SECRETS_DIR)/ArtAtGVSU/Secrets.plist ./ArtAtGVSU/Secrets.plist
.PHONY: ci-test ci-secrets deploy-beta deploy-production deps py-deps secrets bootstrap
deps: py-deps
bundle install
py-deps:
$(PIP) install bumpver==2023.1125
$(PIP) install pre-commit==3.6.2
bootstrap: deps
pre-commit install
.PHONY: changelog
changelog:
./scripts/changelog
.PHONY: bump-version
bump-version:
bumpver update --commit-message '[skip ci] bump version {old_version} -> {new_version}'
ci-test: ci-secrets
$(FASTLANE) test
deploy-beta: ci-secrets
$(FASTLANE) beta
deploy-production: ci-secrets
$(FASTLANE) production
.SILENT:
ci-secrets:
echo ${ENCODED_APP_STORE_CONNECT_API_KEY} | base64 --decode > ./app_store_connect_api_key.json
echo ${ENCODED_GOOGLE_SERVICE_INFO_PLIST} | base64 --decode > ./ArtAtGVSU/GoogleService-Info.plist
echo ${ENCODED_SECRETS_PLIST} | base64 --decode > ./ArtAtGVSU/Secrets.plist