Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Integralist/f9d739957cdec30a6a55b87862175c06 to your computer and use it in GitHub Desktop.
Save Integralist/f9d739957cdec30a6a55b87862175c06 to your computer and use it in GitHub Desktop.
[Publishing packages for multiple languages] #publish #package #ruby #php #python #go #golang #js #javascript #rust

Manual release process

The following steps describe the manual steps to take so you can publish a specific Fastly API client.

fastly-go

fastly-js

Reference: https://docs.npmjs.com/cli/v9/commands/npm-publish

fastly-perl

...

fastly-php

fastly-py

  • Clone https://github.com/fastly/fastly-py
  • Run tag="v1.0.0" && git tag -s $tag -m $tag && git push origin $tag
  • Run python3 -m pip install --upgrade build && python3 -m build to build the package
  • Run python3 -m pip install --upgrade twine && python3 -m twine upload --repository pypi dist/* to publish the package to https://pypi.org/project/fastly/

Reference: https://packaging.python.org/en/latest/tutorials/packaging-projects/

fastly-ruby

fastly-rust

Reference: https://doc.rust-lang.org/cargo/reference/publishing.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment