Skip to content

Commit

Permalink
feat(build): fluidattacks#940 push with technology
Browse files Browse the repository at this point in the history
- Push gh-pages versions with technology
  • Loading branch information
dsalaza4 committed Mar 14, 2023
1 parent 75b5d49 commit 273f071
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ jobs:
set-safe-directory: /github/workspace
args: sh -c "nix-env -if . && m . /docs/deploy prod"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}

linux_envVars_example:
Expand Down
5 changes: 3 additions & 2 deletions docs/src/api/builtins/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ Example:
=== "makes.nix"

```nix
{ projectPath,
...
{
projectPath,
...
}: {
dynamoDb = {
usersdb = {
Expand Down
7 changes: 4 additions & 3 deletions docs/src/api/builtins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ A `makes.nix` file should be:
and returns an attribute set of configuration options:

```nix
{ argA
, argB
, ...
{
argA,
argB,
...
}: {
configOption1 = {
# ...
Expand Down
3 changes: 2 additions & 1 deletion docs/src/api/extensions/format-conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Example:

```nix
# /path/to/my/project/makes/example/main.nix
{ fromJson,
{
fromJson,
makeDerivation,
...
}:
Expand Down
14 changes: 12 additions & 2 deletions makes/docs/deploy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,24 @@ function main {
local env="${1:-}"
local domain="makes.fluidattacks.com"
local cname_path="src/CNAME"
local args=(
gh-deploy
--force
--no-history
)

: \
&& pushd docs \
&& rm -rf "${cname_path}" \
&& if [ "${env}" == "prod" ]; then
echo "${domain}" > "${cname_path}"
: \
&& echo "${domain}" > "${cname_path}" \
&& args+=(
--github-remote
"https://${GITHUB_TOKEN}@github.com/fluidattacks/makes.git"
)
fi \
&& mkdocs gh-deploy --force --no-history
&& mkdocs "${args[@]}"
}

main "${@}"

0 comments on commit 273f071

Please sign in to comment.