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

New release automation #38

Merged
merged 2 commits into from
Sep 22, 2021
Merged

New release automation #38

merged 2 commits into from
Sep 22, 2021

Conversation

mciurcio
Copy link
Contributor

Changes the behavior of build.tsand adds a new workflow for releasing binaries.

Check the commit messages for further details

Changes the behavior of `build.ts` by using two new environment
variables: BUILD_TARGET and RELEASE_VERSION.

BUILD_TARGET must be one of the targets supported by deno.

RELEASE_VERSION string used for naming the resulting binaries.

Example:

  BUILD_TARGET=x86_64-unknown-linux-gnu \
  RELEASE_VERSION=v0.1.0 \
  deno run ... build.ts

If the variables don’t exist, `build.ts` builds a binary based on runtime in use.
The new workflow does the following:

- Builds binaries for all supported platforms
- Builds and publish a Docker image
- Creates and publishes the artifacts to a GitHub release

To trigger the workflow:

- Create a tag for the intended release: `git tag v0.1.0`
- Push the tag: `git push --tags`

The release is published as a prerelease and needs further information
at the moment, like the changelog.
Copy link
Collaborator

@oesgalha oesgalha left a comment

Choose a reason for hiding this comment

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

Great work! 👏

@oesgalha oesgalha merged commit 3255333 into main Sep 22, 2021
@oesgalha oesgalha deleted the feat/release_automation branch September 22, 2021 18:25
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.

None yet

2 participants