From 165f163cd96dcba7f1a5c48eb6d510fae78b9fc9 Mon Sep 17 00:00:00 2001 From: privapps Date: Sat, 12 Mar 2022 16:09:43 -0800 Subject: [PATCH] little changes for README; make gh add assets. --- .github/workflows/build.yaml | 23 +++++++++++++++++------ README.md | 7 +++++-- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ac0c85e..10d8b65 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,9 +1,9 @@ -name: Node.js Build +name: Node.js Tags on: push: - branches: [ main ] - + tags: + - '**' jobs: build: @@ -20,8 +20,19 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm install -g @angular/cli@13.1.1 && npm ci - - run: ng build --aot --build-optimizer --configuration production --base-href=/notebook/index.html + - run: | + npm install -g @angular/cli@13.1.1 && npm ci + ng build --aot --build-optimizer --configuration production --base-href=/notebook/index.html + cp -R dist/notebook-privapps notebook + cd notebook && sed -i.bak "s|/notebook/index.html|/index.html|g" index.html && rm *.bak + cd .. + tar cjf notebook.tar.gz notebook + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + notebook.tar.gz - uses: actions/checkout@v2 with: ref: doc @@ -40,4 +51,4 @@ jobs: git config --local user.email "bot@users.noreply.github.com" git config --local user.name "bot" git commit -m "sync with code $(date +'%F')" && \ - git push "https://${GITHUB_ACTOR}:${{ github.token }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:doc || echo \ No newline at end of file + git push "https://${GITHUB_ACTOR}:${{ github.token }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:doc || echo diff --git a/README.md b/README.md index e00ac56..13d5450 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,11 @@ See build details at https://github.com/privapps/notebook-docker-nginx-fpm-alpin ## Feedbacks and suggestions We would love to hear your opinions. Please let us know from [Feedback From](https://public.biaomail.us.to/stdv.php?id=MTQ=) +## Server side / Editable +You can use privatebin as backend. In addition, there is a custom build backend, that you can edit existing notebook, which make it like a wiki / blog. See details at + +https://github.com/privapps/notebook-docker-nginx-fpm-alpine-privatebin/ + ## Developer guide This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.1.1. @@ -96,5 +101,3 @@ To accomplish copy the URL and share to other people, some charecter are replace bitcoin:bc1qmyewq7mh03a3sd5zgvvg3y5sqgm5un3e7eayhq?time=1614371109 ``` Thanks for helping the maintainance and further development of the apps. Please stand up to protect privacy, promote the freedom of speach and fight against censorship. - -