Skip to content

Commit

Permalink
v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nonrational committed Oct 25, 2024
1 parent a55f400 commit e16334d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ Common tasks are also available via `just`. See `just --list` if you have `just`

## Deployment

See https://deno.com/deploy and [dmz-deploy.yml](./.github/workflows/dmz-deploy.yml).
[Deno Deploy](https://deno.com/deploy) managed by [`deployctl`](https://github.com/denoland/deployctl) via GitHub Actions. See
[ci.yml](./.github/workflows/ci.yml).

To deploy manually, set `DENO_DEPLOY_TOKEN` in your environment and run `just deploy-preview`.
1 change: 1 addition & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"lock": false,
"version": "0.0.2",
"tasks": {
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
"cli": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -",
Expand Down
15 changes: 2 additions & 13 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,7 @@ deploy-preview: build
build:
deno task build

tag-prod: check-repo whats-going-to-prod
tag-prod:
git push origin :refs/tags/prod
git tag -f prod demo
git tag -f prod
git push origin prod

whats-going-to-prod:
@git fetch -f --tags origin
@echo "$$(git log --pretty=format:"%h}<%aN>}%s" prod..main)\n" | cut -c-120 | column -s '}' -t
@read -p"Press [Enter] to continue, ^C to abort..." _

check-repo:
@test $(git rev-parse --abbrev-ref HEAD) = main || (echo "You are not in the main branch" && exit 1)
@git pull --ff-only origin HEAD
@test $(shell git rev-parse origin/HEAD) = $(shell git rev-parse HEAD) || (echo "You have commits that have not been pushed" && exit 1)
@test -z "$(shell git status -s)" || (echo "You have uncommited changes in this branch" && exit 1)

0 comments on commit e16334d

Please sign in to comment.