Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign all builds that are built from pushes to main #64

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

mikeage
Copy link
Member

@mikeage mikeage commented Mar 22, 2021

This requires the addition of 4 secrets:

ANDROID_KEYSTORE_BASE64 -- the output of base64 -i foo.keystore
ANDROID_KEYSTORE_PASS -- the password for the keystore
ANDROID_KEYALIAS_NAME -- the name of the alias
ANDROID_KEYALIAS_PASS -- should match KEYSTORE_PASS in our case

Because it uses Github secrets, it won't run on a fork, so we won't do
this for PRs. But anything coming from the main tree can use this.

We do still keep the github name in the package name, to differentiate
between a formal release and an unreleased candidate.

This requires the addition of 4 secrets:

ANDROID_KEYSTORE_BASE64 -- the output of `base64 -i foo.keystore`
ANDROID_KEYSTORE_PASS -- the password for the keystore
ANDROID_KEYALIAS_NAME -- the name of the alias
ANDROID_KEYALIAS_PASS -- should match KEYSTORE_PASS in our case

Because it uses Github secrets, it won't run on a fork, so we won't do
this for PRs. But anything coming from the main tree can use this.

We do still keep the github name in the package name, to differentiate
between a formal release and an unreleased candidate.
@mikeskydev
Copy link
Member

Thanks! I've added the secrets.

@mikeage
Copy link
Member Author

mikeage commented Mar 24, 2021

Thank you! Let’s get our first signed Android build :-)

@mikeage mikeage merged commit 2c0704a into icosa-foundation:main Mar 24, 2021
@mikeage mikeage deleted the signed_builds branch March 24, 2021 03:45
@mikeage
Copy link
Member Author

mikeage commented Mar 24, 2021

Looks great

$ unzip -p ~/Downloads/Android-Oculus/com.Icosa.OpenBrushgithub.apk META-INF/CERT.RSA |openssl pkcs7 -inform DER -noout -print_certs -text
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 451354860 (0x1ae720ec)
    Signature Algorithm: sha1WithRSAEncryption
        Issuer: CN=Mike Nisbet, OU=Open Brush, O=Icosa, L=Leeds, ST=West Yorkshire, C=GB
        Validity
            Not Before: Feb  5 23:58:54 2021 GMT
            Not After : Jan 24 23:58:54 2071 GMT
        Subject: CN=Mike Nisbet, OU=Open Brush, O=Icosa, L=Leeds, ST=West Yorkshire, C=GB

@mikeskydev
Copy link
Member

Thanks!

andybak pushed a commit to IxxyXR/open-brush that referenced this pull request Apr 9, 2021
* Icosa/main:
  Document the secrets used in the CI (icosa-foundation#82)
  Packaging improvements (icosa-foundation#85)
  Build on PRs, push to main, or commits with [CI BUILD] somewhere in the message (icosa-foundation#75)
  Add Linux (regular + experimental) builds to the releases (icosa-foundation#76)
  Use secrets.UNITY_EMAIL/_PASSWORD/_SERIAL if present, otherwise use hardcoded free license (icosa-foundation#74)
  Create release upon each build and standardize version numbers (icosa-foundation#71)
  Change SketchFab uploads to upload as OpenBrush
  Don't request microphone permissions, no matter what (icosa-foundation#72)
  Add fly tool to advanced tools panel (icosa-foundation#63)
  Re-enable builds on all forks, but only sign if the secrets are present (icosa-foundation#69)
  Only run CI builds on icosa-gallery/open-brush (icosa-foundation#68)
  Enable Experimental builds for Android/Oculus and StandaloneWindows64/SteamVR (icosa-foundation#66)
  Improve and Document CI builds (icosa-foundation#65)
  Sign all builds that are built from pushes to main (icosa-foundation#64)
  Add CI Builds to PRs and pushes to main (icosa-foundation#43)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants