mirror of
https://github.com/anas-elgarhy/Ayah-intellij.git
synced 2026-06-22 21:35:46 +00:00
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
#!/usr/bin/env just --justfile
|
|
|
|
REPO_NAME := "Ayah-intellij"
|
|
|
|
alias dist := package
|
|
alias ch := patch-changelog
|
|
|
|
package:
|
|
cd {{justfile_directory()}} && ./gradlew buildPlugin
|
|
|
|
clean:
|
|
cd {{justfile_directory()}} && ./gradlew clean
|
|
|
|
# Update the CHANGELOG.md
|
|
patch-changelog:
|
|
cd {{justfile_directory()}} && ./gradlew patchChangelog
|
|
|
|
setup-remotes:
|
|
git remote add github git@github.com:0x61nas/{{REPO_NAME}}.git
|
|
git remote add gitlab git@gitlab.com:anelgarhy/{{REPO_NAME}}.git
|
|
git remote add codeberg ssh://git@codeberg.org/0x61nas/{{REPO_NAME}}.git
|
|
git remote add disroot ssh://git@git.disroot.org/anas/{{REPO_NAME}}.git
|
|
git remote add tangled git@tangled.org:anas.tngl.sh/{{REPO_NAME}}
|
|
git remote add codefloe ssh://git@codefloe.com/anas/{{REPO_NAME}}.git
|
|
|
|
# Push the code to all remotes
|
|
push FLAGS="-u" BRANSH="master":
|
|
git push {{FLAGS}} github {{BRANSH}}
|
|
git push {{FLAGS}} gitlab {{BRANSH}}
|
|
git push {{FLAGS}} codeberg {{BRANSH}}
|
|
git push {{FLAGS}} disroot {{BRANSH}}
|
|
git push {{FLAGS}} tangled {{BRANSH}}
|
|
git push {{FLAGS}} codefloe {{BRANSH}}
|
|
|
|
# Push the git tags to all remotes
|
|
pusht: push
|
|
git push --tags github
|
|
git push --tags gitlab
|
|
git push --tags codeberg
|
|
git push --tags disroot
|
|
git push --tags tangled
|
|
git push --tags codefloe
|