Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

chore: update docs and action

Aldino Kemald99d60f20777
diff --git a/.github/workflows/deploy-linux.yml b/.github/workflows/release-linux.yml
similarity index 50%
rename from .github/workflows/deploy-linux.yml
rename to .github/workflows/release-linux.yml
index 3adbda31..9d37526f 100644
--- a/.github/workflows/deploy-linux.yml
+++ b/.github/workflows/release-linux.yml
@@ -9,7 +9,7 @@ on:
- '*'
jobs:
- release-linux:
+ release-linux-amd64:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment: production
@@ -31,8 +31,36 @@ jobs:
run: |
cd src && pkger && go build -o linux-amd64
- name: Deploy artifact to release ${{ github.ref_name }}
- uses: AButler/[email protected]
+ uses: AButler/[email protected]
with:
files: 'src/linux-amd64'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}
+
+ release-linux-arm64:
+ if: startsWith(github.ref, 'refs/tags/v')
+ runs-on: [ARM64]
+ environment: production
+ steps:
+ - uses: actions/checkout@v4
+ - name: Ubuntu update package
+ run: |
+ sudo apt update -y
+ sudo apt install libvips-dev
+ - name: Golang Installation
+ uses: actions/setup-go@v4
+ with:
+ go-version: '1.21'
+ - name: Golang setup dependency
+ run: |
+ go version
+ go install github.com/markbates/pkger/cmd/pkger@latest
+ - name: Golang build
+ run: |
+ cd src && pkger && go build -o linux-arm64
+ - name: Deploy artifact to release ${{ github.ref_name }}
+ uses: AButler/[email protected]
+ with:
+ files: 'src/linux-arm64'
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ release-tag: ${{ github.ref_name }}
\ No newline at end of file
diff --git a/.github/workflows/deploy-mac.yml b/.github/workflows/release-mac.yml
similarity index 95%
rename from .github/workflows/deploy-mac.yml
rename to .github/workflows/release-mac.yml
index ad729196..9aa3bb8a 100644
--- a/.github/workflows/deploy-mac.yml
+++ b/.github/workflows/release-mac.yml
@@ -30,7 +30,7 @@ jobs:
run: |
cd src && pkger && go build -o darwin-amd64
- name: Deploy artifact to release ${{ github.ref_name }}
- uses: AButler/[email protected]
+ uses: AButler/[email protected]
with:
files: 'src/darwin-amd64'
repo-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/deploy-windows.yml b/.github/workflows/release-windows.yml
similarity index 97%
rename from .github/workflows/deploy-windows.yml
rename to .github/workflows/release-windows.yml
index d0826772..4095d34d 100644
--- a/.github/workflows/deploy-windows.yml
+++ b/.github/workflows/release-windows.yml
@@ -45,7 +45,7 @@ jobs:
[Environment]::SetEnvironmentVariable("PKG_CONFIG_PATH", "${{ github.workspace }}\vips-dev-8.12\lib\pkgconfig")
cd src && pkger.exe && go build -o windows-amd64.exe
- name: Deploy artifact to release ${{ github.ref_name }}
- uses: AButler/[email protected]
+ uses: AButler/[email protected]
with:
files: 'src/windows-amd64.exe'
repo-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/readme.md b/readme.md
index f2104071..aaa66117 100644
--- a/readme.md
+++ b/readme.md
@@ -1,13 +1,20 @@
## Whatsapp API Multi Device Version
-[![release version](https://img.shields.io/github/v/release/aldinokemal/go-whatsapp-web-multidevice "release version")](https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases)
+![Build Image](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/build-docker-image.yaml/badge.svg)
<br>
-[![release windows](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-windows.yml/badge.svg "release windows")](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-windows.yml)
-[![release linux](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-linux.yml/badge.svg "release linux")](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-linux.yml)
-[![release macos](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-mac.yml/badge.svg "release macos")](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-mac.yml)
+![release version](https://img.shields.io/github/v/release/aldinokemal/go-whatsapp-web-multidevice)
+<br>
+![release windows](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-windows.yml/badge.svg)
+![release linux](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-linux.yml/badge.svg)
+![release macos](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-mac.yml/badge.svg)
+
+### Support ARM
+Now that we support ARM64 for Linux:
+- [Release](https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases) for ARM64
+- [Docker Image](https://hub.docker.com/r/aldinokemal2104/go-whatsapp-web-multidevice/tags) for ARM64.
-### Feature
+### Feature
- Send whatsapp via http API, [docs/openapi.yml](./docs/openapi.yaml) for more details
- Compress image before send
- Compress video before send
@@ -80,10 +87,6 @@
```
docker run --detach --publish=3000:3000 --name=whatsapp --restart=always --volume=$(docker volume create --name=whatsapp):/app/storages aldinokemal2104/go-whatsapp-web-multidevice --autoreply="Dont't reply this message please"
```
-### Production Mode (docker-arm64)
-```
-docker run --detach --publish=3000:3000 --name=whatsapp --restart=always --volume=$(docker volume create --name=whatsapp):/app/storages aldinokemal2104/go-whatsapp-web-multidevice:latest-arm --autoreply="Dont't reply this message please"
-```
### Production Mode (binary)