Skip to content

Commit

Permalink
Further automation of release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesdring committed Sep 17, 2024
1 parent 937acbe commit efff17c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,18 @@ It is possible to override this when generating the site by setting the `--locat

```sh
deno task build --location https://www.brabners.com/true-north/data-explorer/
```
```

## Bulding a release

The process for creating a release is to build the site, create a zip file and adding a new release to the GitHub repository.

This has been scripted as a [Velociraptor](https://velociraptor.run) action, which can be run from the command line as follows:

```sh
deno task vr make-release
```

This will mint a new release with the name set to a timestamp. WARNING There is no guarantee that the release differs from a prior release.

It is planned to place this in an action to automate the process.
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"lume": "echo \"import 'lume/cli.ts'\" | deno run --unstable -A -",
"build": "deno task lume",
"serve": "deno task lume -s",
"refresh-cache": "deno cache --lock-write _config.ts"
"refresh-cache": "deno cache --lock-write _config.ts",
"vr": "deno run -qA https://code.velociraptor.run"
}
}
2 changes: 1 addition & 1 deletion velociraptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ scripts:
- deno task build --location https://www.brabners.com/true-north/data-explorer/
- rm site.zip
- zip -r site.zip _site/
- gh release create
- gh release create $(date +%Y%m%d-%H%M%S) site.zip --generate-notes --latest

0 comments on commit efff17c

Please sign in to comment.