Skip to content

[Deprecated] TravisEncrypt

cocoatomo edited this page Jun 20, 2021 · 1 revision

pyXX-locale レポジトリの .travis.yml では、環境変数 GH_TOKEN の設定するための文字列を暗号化してある。

手順

Personal access token の取得

https://github.com/settings/profile > Personal access tokens > Generate new token から作成する。

権限は repo を付与しておく。 pyXX-locale などの名前を付けて忘れないようにしておく。

設定文字列の暗号化

gem install travis

travis encrypt GH_TOKEN="XXXXXXX" -r 'python-doc-ja/pyXX-locale'

XXXXXXX はトークン文字列を指定する。

Please add the following to your .travis.yml file:

  secure: "YYYYYYY"
...

と出力されるので、 secure: "YYYYYYY" の部分を .travis.yml にコピーして

env:
  global:
    secure: "YYYYYYY"

と設定する。

Clone this wiki locally