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

Fixing tag activated package registration

parent 16ea5aed
No related branches found
No related tags found
No related merge requests found
......@@ -20,28 +20,19 @@ register:
using RegistryTools;
# Use environment variable for the package repository URL
package_repo = ENV["PACKAGE_REPO"];
package_repo = ENV["PACKAGE_REPO"]
# Get the current commit hash (tree SHA)
tree_sha = readchomp(`git rev-parse HEAD`);
tree_sha = readchomp(`git rev-parse HEAD`)
# Load Project.toml
pkg = RegistryTools.Project("Project.toml");
pkg = RegistryTools.Project("Project.toml")
# 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"])
);
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);
'
RegistryTools.register(reg_params)'
only:
- tags
......
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