-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjustfile
More file actions
38 lines (29 loc) · 1.01 KB
/
justfile
File metadata and controls
38 lines (29 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
test:
echo "Running Tests"
cabal test --test-option="--hide-successes"
update-version version:
echo "Update Version: {{version}}"
sed -i "s/Version \".*\"/Version \"{{version}}\"/g" app/Main.hs
sed -i "s/^version\:.*/version: {{version}}/g" Hastructure.cabal
tag-files env version:
echo "Tagging Files"
git add CHANGELOG.md
git add app/Main.hs Hastructure.cabal swagger.json
git commit -m "bump version to-> < {{version}} >"
git tag -a {{env}}{{version}} -m "{{env}}{{version}}"
git push origin HEAD --tag
push-code:
echo "Pushing Code"
git push --tag
git push origin HEAD
upload-chlog:
echo "<CHANGE LOG> Upload Change Log "
scp CHANGELOG.md root@simplicity.vip:/root/absbox.org/ChangeLog.md
publish env version:
just update-version {{version}}
just tag-files {{env}} {{version}}
just upload-chlog
revert-tag env version:
echo "Revert Tag: {{env}}{{version}}"
git tag -d {{env}}{{version}}
git push origin :refs/tags/{{env}}{{version}}