From aa3ce8a87313f87d1055046f044900d5becb9e0b Mon Sep 17 00:00:00 2001 From: Riccardo Boero Date: Tue, 19 Nov 2024 09:24:39 +0100 Subject: [PATCH] Fix action for package registration. --- .github/workflows/register-julia-package.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/register-julia-package.yml b/.github/workflows/register-julia-package.yml index dc6dc00..1cb3c74 100644 --- a/.github/workflows/register-julia-package.yml +++ b/.github/workflows/register-julia-package.yml @@ -18,20 +18,21 @@ jobs: - name: Set Up Julia uses: julia-actions/setup-julia@v1 with: - version: '1.6' # Specify your desired Julia version + version: '1.6' - # Install Registrator.jl - - name: Install Registrator.jl - run: julia -e 'using Pkg; Pkg.add("Registrator")' + # Install LocalRegistry.jl + - name: Install LocalRegistry.jl + run: julia -e 'using Pkg; Pkg.add("LocalRegistry")' - # Run Registrator to register the package + # Register the package locally - name: Register Package env: GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }} run: | julia -e ' - using Registrator; - Registrator.register( - subdir = "julia/PRISMAID", - registry = "https://github.com/open-and-sustainable/julia.git" + using LocalRegistry; + LocalRegistry.register( + package_dir = "julia/PRISMAID", + registry = "https://github.com/open-and-sustainable/julia.git", + subdir = "julia/PRISMAID" )'