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 create archive step to CD workflow #280

Merged
merged 5 commits into from
Dec 13, 2023
Merged

Conversation

smoucka
Copy link
Contributor

@smoucka smoucka commented Dec 12, 2023

Description

Adds a step to the CD workflow to create a zip archive while excluding files that don't need to be released through a .distignore file.

Manual Testing Steps

  1. Forked the repo and made these updates to test distignore, zip and adding artifact to release. See attachced zip file for example of output.
    klaviyo_reclaim-4.1.0.zip

Pre-Submission Checklist:

  • You've updated the CHANGELOG following the steps here
  • Internal Only - If this is a release, please confirm the following:
    • The links in the changelog have been updated to point towards the new versions
    • The version has been incremented in the following places: module.xml and composer.json

NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.

@smoucka smoucka changed the title 202312 swm cd add zip step Add create archive step to CD workflow Dec 12, 2023
@smoucka smoucka marked this pull request as ready for review December 12, 2023 23:24
@smoucka smoucka requested a review from a team as a code owner December 12, 2023 23:24
@smoucka smoucka requested a review from cykolln December 12, 2023 23:25
Copy link
Contributor

@cykolln cykolln left a comment

Choose a reason for hiding this comment

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

🔥

- name: Create GitHub Tag & Release
# Creates GH tag and release, adds zip archive as artifact to release.
uses: ncipollo/release-action@v1
with:
tag: ${{ needs.determine-if-deploy.outputs.version }}
commit: ${{ github.sha }}
name: Release ${{ needs.determine-if-deploy.outputs.version }}
body: ${{ env.content }}
prerelease: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a reason we create the release as a pre-release?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Synced with Claire offline on this. This needs to be a prerelease so it doesn't prematurely get picked up by packagist until it passes review by Adobe/M2.

@smoucka smoucka merged commit d9193d2 into master Dec 13, 2023
3 checks passed
@smoucka smoucka deleted the 202312_swm_cd_add_zip_step branch December 13, 2023 18:09
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