Skip to content

Core Tools v2 Release Tasks

Ahmed ElSayed edited this page Aug 6, 2020 · 18 revisions
  • Create a github release and tag. Please add brief release notes for the new release.

  • Make sure all needed packages are on CDN. This has to include:

https://functionscdn.azureedge.net/public/{version}/Azure.Functions.Cli.linux-x64.{version}.zip
https://functionscdn.azureedge.net/public/{version}/Azure.Functions.Cli.no-runtime.{version}.zip
https://functionscdn.azureedge.net/public/{version}/Azure.Functions.Cli.osx-x64.{version}.zip
https://functionscdn.azureedge.net/public/{version}/Azure.Functions.Cli.win-x64.{version}.zip
https://functionscdn.azureedge.net/public/{version}/Azure.Functions.Cli.win-x86.{version}.zip
cd src/Azure.Functions.Cli/npm
# update version using-
npm version [VERSION]
# Ensure package.json and npm-shrinkwrap.json versions are updated. 
# Make sure nothing else changed in npm-shrinkwrap.json
npm publish
  • Update Homebrew
git clone [email protected]:Azure/homebrew-functions.git

And update the version and sha2 like in this commit

  • Update APT
# On a ubuntu machine
# First time setup
git clone [email protected]:ahmelsayed/publish-script.git
cd publish-script
python3 -m venv publish_venv
source publish_venv/bin/activate
pip install wget adal

# Everytime after that, make sure to source your venv above
python driver.py {version}
cd artifacts
repoapi_client -config bionic.config.json -addfile azure-functions-core-tools_{version}.deb
repoapi_client -config artful.config.json -addfile azure-functions-core-tools_{version}.deb
repoapi_client -config xenial.config.json -addfile azure-functions-core-tools_{version}.deb
repoapi_client -config cosmic.config.json -addfile azure-functions-core-tools_{version}.deb
repoapi_client -config stretch.config.json -addfile azure-functions-core-tools_{version}.deb
repoapi_client -config disco.config.json -addfile azure-functions-core-tools_{version}.deb
  • Update Chocolatey
# On a Windows machine
# First time setup
git clone https://github.com/ahmelsayed/publish-script.git
cd publish-script
python3 -m venv publish_venv
publish_venv\Scripts\activate
pip install wget

# Everytime after that, make sure to source your venv above
python driver.py {version}
cd artifact

choco push azure-functions-core-tools.{version}.nupkg -k {api key}
  • Update Winget

Create a new version manifest under https://github.com/microsoft/winget-pkgs/tree/master/manifests/Microsoft/AzureFunctionsCoreTools