Skip to content

Commit

Permalink
Docs & Dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
haimkastner committed May 20, 2023
1 parent e8eef0c commit 71309b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 67 deletions.
78 changes: 19 additions & 59 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ jobs:
cd ..
echo $version > version.txt
echo $version
echo ::set-output name=version::$version
echo "VERSION=$version" >> $GITHUB_OUTPUT
- name: Commit and push changes
if: github.ref == 'refs/heads/master'
uses: devops-infra/action-commit-push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: Update to version ${{ steps.update_version.outputs.version }} [skip-ci]
commit_message: Update to version ${{ steps.update_version.outputs.VERSION }} [skip-ci]
- name: Bundle packages
# NOTE, the default ARMV bin (v16.12.0) not exists in the "https://github.com/vercel/pkg-fetch/releases" page, so download V16.8 and replace name and hash to build using it
run: |
Expand Down Expand Up @@ -104,74 +105,33 @@ jobs:
version=$(npm --no-git-tag-version --tag-version-prefix= version patch)
cd ..
echo $version > version.txt
echo ::set-output name=version::$(cat ./version.txt)
echo ::set-output name=title::$( git log -1 --pretty=%B | sed -n '1p')
echo "VERSION=$version" >> $GITHUB_OUTPUT
title=$(git log -1 --pretty=%B | sed -n '1p')
echo "TITLE=$title" >> $GITHUB_OUTPUT
body=$(git log -1 --pretty=%B | sed 1d)
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo ::set-output name=body::$body
echo "BODY=$body" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.version }}
release_name: ${{ steps.get_version.outputs.title }}
body: ${{ steps.get_version.outputs.body }}
tag_name: ${{ steps.get_version.outputs.VERSION }}
name: ${{ steps.get_version.outputs.TITLE }}
body: ${{ steps.get_version.outputs.BODY }}
draft: false
prerelease: true
- name: Upload Release Asset - arm
id: upload-release-asset_arm
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./casanet_bin/casanet_linux_arm
asset_name: casanet_linux_arm
asset_content_type: application/octet-stream
- name: Upload Release Asset - win
id: upload-release-asset_win
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./casanet_bin/casanet_win_x64.exe
asset_name: casanet_win_x64.exe
asset_content_type: application/octet-stream
- name: Upload Release Asset - linux x86
id: upload-release-asset_linux86
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./casanet_bin/casanet_linux_x64
asset_name: casanet_linux_x64
asset_content_type: application/octet-stream
- name: Upload Release Asset - conf
id: upload-release-asset_conf
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./casanet_bin/casanet.json
asset_name: casanet.json
asset_content_type: application/octet-stream
- name: Upload Release Asset - spec
id: upload-release-asset_spec
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./casanet_bin/swagger.json
asset_name: swagger.json
asset_content_type: application/octet-stream
files: |
./casanet_bin/casanet_linux_arm
./casanet_bin/casanet_win_x64.exe
./casanet_bin/casanet_linux_x64
./casanet_bin/casanet.json
./casanet_bin/swagger.json
- name: Upload Spec To Hub # And finally all ready to upload new spec version to swagger hub
env:
SWAGGERHUB_API_KEY: '${{ secrets.SWAGGERHUB_API_KEY }}' # Export the SWAGGERHUB_API_KEY secret as environment variable, use to auth publish request
Expand Down
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ For the lightweight interface navigate to `[server-ip/host]/light-app/index.html

> For more details and information about the lightweight interface see [lightweight-dashboard](https://github.com/casanet/lightweight-dashboard) repository.

> For the legacy dashboard see [frontend-v3](https://github.com/casanet/frontend-v3) repository.
## Running Casanet server on a local computer

To make it easy to use there are ready-to-use binaries [here](https://github.com/casanet/casanet-server/releases) just download the binary file (depend on your OS) and the `casanet.json` configuration file and run the executable file.
Expand Down Expand Up @@ -198,7 +195,7 @@ Yes, it is possible and it's welcomed! see [modules documentation](./backend/src
The full specs of API are documented in [SwaggerHub](https://app.swaggerhub.com/apis/haimkastner/casanet-local-server).


To try it out against the demo mock server go to [casanet-mock-server docs](https://casanet-mock-server.herokuapp.com/docs/#/)
To try it out against the demo mock server go to [casanet-mock-server docs](https://demo.remote.casanet.casa/docs/#/)

For a running Casanet server use Swagger UI to make API calls in the `[local server IP]/docs` URL.

Expand Down Expand Up @@ -230,10 +227,6 @@ By using this project you agree to the [privacy policy](./docs/privacy-policy.md

This application is an open-source code, under the GNU license.

In addition to the GNU terms of the license, any non-personal use requires full credit in a prominent position in the interface including a link to this page and [https://casanet.biz/](https://casanet.biz/)

בנוסף לתנאי הרישיון של GNU, כל שימוש לא אישי מצריך קרדיט מלא במיקום בולט בממשק כולל קישור לעמוד זה ול [https://casanet.biz/](https://casanet.biz/)

## Credits
* Logo and UX consulting [Ofek Avergil](https://il.linkedin.com/in/ofek-avergil-348260144).

Expand Down

0 comments on commit 71309b7

Please sign in to comment.