Steps to create a julia package:
Run the following command to generate a template for the package
using PkgTemplates
tpl = Template(;
user="my-username",
dir="~/code",
authors="Acme Corp",
julia=v"1.4",
plugins=[
License(; name="MPL"),
Git(; manifest=true, ssh=true),
GitHubActions(; x86=true),
Codecov(),
Documenter{GitHubActions}(),
Develop(),
], )
tpl("PkgName")
Create an empty repository on Github.
Note that the default branch on Github may be set to “main”. You need to go to “Setting/Repository Default” to change the default branch to be “master”.
Run the commands to upload the local repository to Github.
git remote set-url origin https://github.com/numericalEFT/MCIntegration.jl.git
git branch -M master
git push -u origin master
Update the links for badges. Make sure that the links are pointed to the correct account hosting the repository.
Turn on support for documentation pages.
deploydocs(;
repo="github.com/numericalEFT/MCIntegration.jl",
devbranch="master",
)
@JuliaRegistrator register
julia — Aug 21, 2021
Made with ❤ and at Earth.