Skip to content

Commit

Permalink
Add publication time to web page
Browse files Browse the repository at this point in the history
  • Loading branch information
cowuake committed May 1, 2024
1 parent e986ed3 commit 5e2291d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- 'schemius-native/**'
- 'schemius-web/src/**'
- 'schemius-web/Cargo.toml'
paths-ignore:
- '.github/workflows/*-web.yml'

jobs:
build-and-test:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ jobs:
working-directory: ${{ env.WORK_DIR }}

- name: Generate final web page
run: cp $WEB_PAGE_SOURCE $WEB_PAGE
run: |
cp $WEB_PAGE_SOURCE $WEB_PAGE
sed -i "s/DATETIME_PLACEHOLDER/$(date -u '+Published %F %H:%M:%S UTC')/g" ${{ env.WORK_DIR }}/${{ env.WEB_PAGE_JS }}
working-directory: ${{ env.WORK_DIR }}

- name: Upload artifacts
Expand Down
2 changes: 1 addition & 1 deletion schemius-web/schemius.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Schemius {
███████║╚██████╗██║ ██║███████╗██║ ╚═╝ ██║██║╚██████╔╝███████║
╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚══════╝
Welcome to Schemius!
Welcome to Schemius! [DATETIME_PLACEHOLDER]
Press [Ctrl + H] to show this welcome message
Press [Ctrl + K] to show essential keymap
(environment-bindings) -> Show bindings in current env
Expand Down

0 comments on commit 5e2291d

Please sign in to comment.