Skip to content
Snippets Groups Projects
Commit 4d413467 authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Fixing tag activated package registration

parent aeeff0c0
No related branches found
No related tags found
No related merge requests found
......@@ -18,18 +18,14 @@ register:
Pkg.add("Registrator");
using Registrator;
using RegistryTools;
# Define package repository, branch, and tree SHA
package_repo = ENV["PACKAGE_REPO"] # Use environment variable for the package repository URL
branch = "main"
# Fetch the project data
pkg = RegistryTools.Project("Project.toml") # Path to your Project.toml in the package repo
tree_sha = readchomp(`git rev-parse HEAD`) # Get the current commit hash (tree SHA)
# Create RegisterParams object
reg_params = Registrator.RegisterParams(package_repo, pkg, tree_sha; registry="https://git.nilu.no/julia/registry", registry_fork="https://git.nilu.no/julia/registry", push=true, gitconfig=Dict("user.name" => ENV["GITLAB_REGISTRY_USER"], "user.password" => ENV["GITLAB_REGISTRY_PASS"]))
# Call the register function
RegistryTools.register(reg_params)'
only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment