Skip to content

Composite action for registering package at LocalRegistry using CI

License

Notifications You must be signed in to change notification settings

lukasgrunwald/julia-register-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

julia-register-local Action

This action registers a new version of the package in a local registry using LocalRegistry.jl. It requires two inputs

  • localregistry: GitHub url (ssh/https) of local-registry to be updated by the action.
  • ssh_keys: SSH key(s) for accessing the repos and pushing to local registry. Multiple keys by using the pipe | operator.

The commit in the local-registry is signed as github.actor@RegisterAction. If no new package version is specified in the commit, nothing is pushed to the local-registry. It makes sense to run this action conditionally, after the unit tests passed.

A complete example, is shown below

name: CI
on:
  push:
    branches:
      - master
jobs:
  test:
    # ... Run unit tests 
  register:
    needs: test # Only run this once test is completed
    name: Register Package
    runs-on: ubuntu-latest
    steps:
    - uses: lukasgrunwald/julia-register-local@v1
      with:
        localregistry: git@github.com:lukasgrunwald/CondMatRegistry.git
        ssh_keys: | # Private Deploy key of CondMatRegistry
           ${{ secrets.REGISTRY_DEPLOY }}

One can also split the register action into a separate file using the workflow_run syntax; see this post.

About

Composite action for registering package at LocalRegistry using CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages