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

Add GitHub Actions to build and add release asset #608

Merged
merged 4 commits into from
Jul 2, 2020
Merged

Conversation

helen
Copy link
Contributor

@helen helen commented Jul 2, 2020

Description of the Change

Adds GitHub Actions to build the release and create and attach a ZIP file to the GitHub release for download metric tracking. Note that download metrics will only come into play beginning with the release following this one, because this PR also enables updating from release assets.

Because the build component is automated now, the POT file has been removed in favor of generating it and only having it in the stable branch. One thing I noticed is that the POT file includes strings from the vendor folder; I am not sure how to get around that, but if we can somehow ignore those when generating the POT, we should probably do that.

Alternate Designs

Leaving as-is, very manual and error-prone.

Benefits

Less human error!

Possible Drawbacks

I won't really know if this works until it runs live.

Verification Process

See above. I did run various individual steps locally and they do work.

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

Fixes #600 and #425

Changelog Entry

Needs

helen added 3 commits July 1, 2020 22:25
Notes:
* Had to ensure application-passwords was included
* The copy task suddenly started complaining about async so I used the callback function method to fix
* Enables updating from release assets, meaning that this won't actually show meaningful download stats until the next release
* I have no idea if this is going to work on GH but the commands do work correctly locally
@helen helen added this to the 1.6.0 milestone Jul 2, 2020
@jeffpaul
Copy link
Member

jeffpaul commented Jul 2, 2020

This looks good to me, assuming we've got GITHUB_TOKEN set up correctly.

@helen
Copy link
Contributor Author

helen commented Jul 2, 2020

@jeffpaul GITHUB_TOKEN is provided in the environment, no setup needed, we just have to reference it correctly.

@dinhtungdu
Copy link
Contributor

@helen I realize that we still have some vendor packages under version control. We can remove them completely and use composer install --no-dev to install them in the GitHub Actions workflow before zipping.

@helen helen merged commit 3da1cdf into develop Jul 2, 2020
@helen helen deleted the add/gh-actions branch July 2, 2020 19:27
@helen helen restored the add/gh-actions branch July 2, 2020 19:27
@helen helen deleted the add/gh-actions branch July 2, 2020 19:27
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.

Update release process to attach ZIP file to release
3 participants