Commit Graph

11 Commits

Author SHA1 Message Date
Pascal Hartig
781df776f2 Rename default branch references to main (#2689)
Summary:
I really hope I hit everything and didn't break anything that wasn't
referring to branch names.

Pull Request resolved: https://github.com/facebook/flipper/pull/2689

Test Plan:
_eyes

CI

|[Site Preview: flipper](https://our.intern.facebook.com/intern/staticdocs/eph/D30305789/V2/flipper/)

Reviewed By: timur-valiev

Differential Revision: D30305789

Pulled By: passy

fbshipit-source-id: 5daaa09250bb96bb50be679fc01dae86c666eb73
2021-08-13 15:00:39 -07:00
Pascal Hartig
7fd0c7d82e Fix upload of sample app apk (#1920)
Summary:
This was an expected failure, you can see here how the last step of the "Publish Android" workflow currently fails: https://github.com/facebook/flipper/runs/1873750507?check_suite_focus=true

This is because it no longer runs in a tagging context. We're now providing the tag as an input and my custom action knows how to attach to existing tags by name.

Pull Request resolved: https://github.com/facebook/flipper/pull/1920

Test Plan:
Test run here finished successfully: https://github.com/passy/flipper-1/actions/runs/560774414
Publish Android job: https://github.com/passy/flipper-1/actions/runs/560775419
Attached release: https://github.com/passy/flipper-1/releases/tag/v0.0.7
Artifacts on Central: https://repo.maven.apache.org/maven2/com/facebook/flipper/flipper/0.0.7/

{F372552533}

{F372552532}

Reviewed By: mweststrate

Differential Revision: D26402629

Pulled By: passy

fbshipit-source-id: 7290e6bb8d1078ee20a0cf10105dc37f1e7aa99a
2021-02-12 04:36:11 -08:00
Pascal Hartig
0085a0d140 Set up release automation (#1915)
Summary:
Depends on https://github.com/facebook/flipper/issues/1914.
This sets up the workflows for automatically building, publishing and "closing" the repository on Maven Central, which is a step you usually need to do manually in the web UI.

Still need to transfer all the secrets over to this repo for it to work.

Pull Request resolved: https://github.com/facebook/flipper/pull/1915

Test Plan:
Ran all of this in my this in my fork and released some `0.0.x` versions.

- Successful workflow: https://github.com/passy/flipper-1/actions/runs/552170713
- It's actually all on Maven: https://repo.maven.apache.org/maven2/com/facebook/flipper/

Reviewed By: jknoxville

Differential Revision: D26367469

Pulled By: passy

fbshipit-source-id: d65f64ee8eec1dc71af64b7e0f87473b9c956fec
2021-02-10 07:16:32 -08:00
Pascal Hartig
30628c8139 Publish npm packages from Action
Summary: Adds an action for publishing packages to npm. Secret was added as part of T80403944.

Reviewed By: nikoant

Differential Revision: D25195740

fbshipit-source-id: 51d43d9f5e84a25a67b637233b2c62a9a1a15063
2020-11-27 09:30:06 -08:00
Anton Nikolaev
46a1ac5947 Fix github release script
Summary: Just a small mispelling in step specification

Reviewed By: mweststrate

Differential Revision: D25053437

fbshipit-source-id: 39e7c9c578a448495b92f8aa3632b2843d79490c
2020-11-18 10:07:09 -08:00
Pascal Hartig
9a3cd63d55 Pin workflow actions (#1687)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1687

I cleaned up and tagged both of the custom actions.
It's much better to pin them down properly so that
future changes on `main` don't break anything.

Reviewed By: nikoant

Differential Revision: D24996462

fbshipit-source-id: 6d63e76b758439ba8df4ef2f5b77992789744e7b
2020-11-16 13:03:57 -08:00
Pascal Hartig
30d212da65 Select release commit from larger push (#1678)
Summary:
GitHub only issues one push event for multiple commits.
This causes things to behave weirdly. My action now
looks for a commit with a certain message and runs
the subsequent steps on it. If there's more than one
matching commit, it uses the last one. Not great, not terrible.

Pull Request resolved: https://github.com/facebook/flipper/pull/1678

Test Plan: Ran it on my fork: https://github.com/passy/flipper-1/actions/runs/360332680

Reviewed By: nikoant

Differential Revision: D24955986

Pulled By: passy

fbshipit-source-id: 6dcbe11e69bf77c803e3907ced3185ca85483ec8
2020-11-16 11:05:30 -08:00
Pascal Hartig
50f2b0db5f Trigger publish-pods from release workflow
Summary: Had the `PERSONAL_TOKEN` put in place by the OSS oncall. Still won't know if it has the right permissions until we run this. :/

Reviewed By: nikoant

Differential Revision: D24833829

fbshipit-source-id: 4fbf6e0b0abbc50d0b9a1e9b7ca8b02f6e1f5171
2020-11-10 04:24:58 -08:00
Pascal Hartig
d28610a9d2 Add retries to release GitHub Action
Summary:
Noticed that the icon download fails occasionally from GitHub.
This adds a few retries in case that happens.

Reviewed By: nikoant

Differential Revision: D24647690

fbshipit-source-id: 3ed84cb0972b7715fd87c8b1e1e1bca9f89485a9
2020-11-05 05:17:29 -08:00
Pascal Hartig
1fde900fcc Pin down custom actions
Summary:
I tagged my repos so messing on `master` won't break
our release flow.

Reviewed By: nikoant

Differential Revision: D24647691

fbshipit-source-id: c5e89dcf0a9063e86baf44e6d25164884a1a2b1e
2020-11-05 05:17:29 -08:00
Pascal Hartig
7293a7ff55 Move public build infra entirely to GitHub
Summary:
As part of our release confidence effort, this replaces the flaky internal task that creates the tag, promotes it to a release and uploads the artifacts to it.

Instead, we do all this in one lengthy GitHub Action. There seems to be some duplication here but this is because of the unfortunate restriction GitHub Actions imposes to avoid recursive Actions. I.e. we cannot create a tag/release and have another, independent Action pick up from there to do the building and releasing.

The `passy/` references were necessary because existing Actions didn't quite what we wanted to:

- `tag-version-commit` expected the title of the commit to match the precise tag to create. However, we want to use a regex to *extract* from the "Flipper Release: vA.B.C". My fork allows specifying a grouping regex for that.
- `github-upload-release-artifacts-action` relied on being triggered by a tag. As described above, that's not possible with this setup. Instead, this takes an existing tag and attaches to it.

Reviewed By: nikoant

Differential Revision: D24627518

fbshipit-source-id: 8121df6aa7bd36bda28e0d3cb207a002cd127647
2020-11-05 05:17:29 -08:00