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

Migrate to GitHub Actions for CI #780

Merged
merged 3 commits into from
Jul 10, 2021
Merged

Conversation

nayaabkhan
Copy link
Contributor

@nayaabkhan nayaabkhan commented Apr 10, 2021

Thank you for contributing to Reach UI! Please fill in this template before submitting your PR to help us process your request more quickly.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code (Compile and run).
  • Add or edit tests to reflect the change (Run with yarn test).
  • Add or edit Storybook examples to reflect the change (Run with yarn start).
  • Ensure formatting is consistent with the project's Prettier configuration.
  • Add documentation to support any new features.

This pull request:

  • Creates a new package
  • Fixes a bug in an existing package
  • Adds additional features/functionality to an existing package
  • Updates documentation or example code
  • Other

Fixes #771.

name: Release
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@chaance Needs attention: A GitHub secret should be created with the value of NPM_TOKEN you use.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 10, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ab726cc:

Sandbox Source
reach-ui-template Configuration

@@ -21,10 +21,10 @@ cd $tmp_dir
git add -A
git commit \
--allow-empty \
--author "Travis CI <travis-ci@reacttraining.com>" \
--author "GitHub CI <github-ci@reacttraining.com>" \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@chaance Needs attention: I've made changes here for consistency, but I'd recommend creating a CI agnostic address like ci@reacttraining.com instead.

run: yarn build

- run: echo "Deploying website to https://reach.tech/"
- run: openssl aes-256-cbc -K $encrypted_e12d3fc86b46_key -iv $encrypted_e12d3fc86b46_iv -in website-deploy-key.enc -out website-deploy-key -d
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needs attention: I'm not familiar with this, possibly they're also set on Travis and need to be migrated to GitHub Secrets? If so, should be updated to secrets.* format as well.

Copy link
Member

Choose a reason for hiding this comment

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

Trying to pin down these values, but once I have these I'll update this and get it merged. In the mean time we can replace $encrypted_e12d3fc86b46_key with ${{ secrets.encrypted_e12d3fc86b46_key }} (same for the iv key).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done ✅

@chaance
Copy link
Member

chaance commented Apr 11, 2021

This is great, thanks so much! I'll try to take a look at this and get the outstanding needs resolved this weekend.

@chaance chaance merged commit ab726cc into reach:develop Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to GitHub Actions for CI
2 participants