diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f0524b8 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,32 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: node:current-alpine3.12 + commands: + - npm install -D + - npm run rebuild + + - name: package + image: fuww/alpine-zip + commands: + - SHORTREV=`echo $DRONE_COMMIT | cut -b 1-8` + - echo FILENAME=`date +%Y%m%d%H%m`-$SHORTREV.zip >> environment + - source environment + - zip -r $FILENAME build + + - name: b2 + image: tianon/backblaze-b2:2 + environment: + BUCKET: carbon-artifacts + ACCOUNT: + from_secret: b2_account_id + KEY: + from_secret: b2_application_key + commands: + - source environment + - b2 authorize-account $ACCOUNT $KEY + - b2 upload-file $BUCKET $FILENAME $FILENAME + - echo Build artifacts avaliable at `b2 make-friendly-url $BUCKET $FILENAME` diff --git a/build/static/Timeline.js b/build/static/Timeline.js index 035c37b..9917522 100644 --- a/build/static/Timeline.js +++ b/build/static/Timeline.js @@ -5,7 +5,7 @@ import {Anchor} from "./Anchor.js" import * as lsm from "./lsm.js" import {resolveMxc} from "./functions.js" -const dateFormatter = Intl.DateTimeFormat("default", {hour: "numeric", minute: "numeric", second: "numeric", day: "numeric", month: "short", year: "numeric"}) +const dateFormatter = Intl.DateTimeFormat("default", {hour: "numeric", minute: "numeric", day: "numeric", month: "short", year: "numeric"}) let sentIndex = 0 diff --git a/src/js/Timeline.js b/src/js/Timeline.js index 035c37b..9917522 100644 --- a/src/js/Timeline.js +++ b/src/js/Timeline.js @@ -5,7 +5,7 @@ import {Anchor} from "./Anchor.js" import * as lsm from "./lsm.js" import {resolveMxc} from "./functions.js" -const dateFormatter = Intl.DateTimeFormat("default", {hour: "numeric", minute: "numeric", second: "numeric", day: "numeric", month: "short", year: "numeric"}) +const dateFormatter = Intl.DateTimeFormat("default", {hour: "numeric", minute: "numeric", day: "numeric", month: "short", year: "numeric"}) let sentIndex = 0