Skip to content

Commit f791498

Browse files
Merge pull request #432 from adamtheturtle/update-secrets
Update secrets
2 parents 4c94da8 + 8ecbd81 commit f791498

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,7 @@ gem install travis --no-rdoc --no-ri
133133
Add the encrypted secrets files to the repository and Travis CI:
134134

135135
```sh
136-
tar cvf secrets.tar ci_secrets/
137-
travis encrypt-file secrets.tar --add --force
138-
git add secrets.tar.enc .travis.yml
139-
git commit -m 'Update secret archive'
140-
git push
136+
make update-secrets
141137
```
142138

143139
Note that the [Travis CI documentation](https://docs.travis-ci.com/user/encrypting-files/#Caveat) warns that this might not work on Windows.

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ lint:
1616
yapf --diff --recursive src/ tests/ ci/
1717
markdownlint --config .markdownlint.json README.md CONTRIBUTING.md
1818

19+
.PHONY: fix-lint
1920
fix-lint:
2021
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables .
2122
yapf --in-place --recursive .
2223
isort --recursive --apply
24+
25+
.PHONY: update-secrets
26+
update-secrets:
27+
tar cvf secrets.tar ci_secrets/
28+
travis encrypt-file secrets.tar --add --force
29+
git add secrets.tar.enc .travis.yml
30+
git commit -m 'Update secret archive [skip ci]'
31+
git push

secrets.tar.enc

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)