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

chore: Added Actions-based release workflow #331

Merged
merged 5 commits into from
Feb 19, 2020
Merged

Conversation

hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Feb 11, 2020

We need to take a slightly different approach with Go releases since there are no artifacts to speak of. The proposed release process is:

  1. Create a PR against master and apply the label release:stage. This will trigger the staging workflow and run the tests. (Actually the label is optional in this case. Simply targeting the master branch is sufficient)
  2. Merge the PR once all the reviews and checks are completed. Code is now released.
  3. The publish action triggers at this point which creates the tag.

Sample staging run: https://github.com/firebase/firebase-admin-go/runs/439827992

@hiranya911 hiranya911 added the release:stage Stage a release candidate label Feb 11, 2020
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! One question.

# Only run the workflow when a PR is merged to the master branch.
pull_request:
branches: master
types: closed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we close a PR without merging would that also trigger this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does, but then will get immediately skipped because of:

if: github.event.pull_request.merged

@hiranya911 hiranya911 removed the release:stage Stage a release candidate label Feb 19, 2020
@hiranya911 hiranya911 merged commit aa4e7a4 into dev Feb 19, 2020
@hiranya911 hiranya911 deleted the hkj-release-flow branch February 19, 2020 21:10
hiranya911 added a commit that referenced this pull request Apr 23, 2020
* chore: Removed Travis CI integration (#326)

* chore: Added Actions-based release workflow (#331)

* chore: Added Actions-based release workflow

* Set GOPATH

* Fixed working directory for tests

* Decrypting credentials into the testdata directory

* Added preflight and post check scripts

* chore: Running CI workflow on pull_request (#338)

* fix(fcm): correct the iidEndpoint endpoints used for topic management (#335)

According to the document https://developers.google.com/instance-id/reference/server,
the endpoints should be:

https://iid.googleapis.com/iid/v1:batchAdd
https://iid.googleapis.com/iid/v1:batchRemove

NOT:

https://iid.googleapis.com/iid/v1/:batchAdd
https://iid.googleapis.com/iid/v1/:batchRemove

* fix(fcm): Fix documents of FCM batch request limit (#347)

Co-authored-by: Hiranya Jayathilaka <hiranya911@gmail.com>

* fix: Deferring credential loading until required (#361)

* Bumped version to 3.12.1 (#363)

* chore: Specifying correct working directory for staging command (#365)

Co-authored-by: Rueian <rueiancsie@gmail.com>
Co-authored-by: 178inaba <178inaba.git@gmail.com>
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