Skip to content

Commit

Permalink
Fix action for package registration.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricboer0 committed Nov 19, 2024
1 parent 514ea05 commit aa3ce8a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/register-julia-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)'

0 comments on commit aa3ce8a

Please sign in to comment.