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 3adbda3..9d37526 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/upload-release-assets@v2.0
+ uses: AButler/upload-release-assets@v3.0
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/upload-release-assets@v3.0
+ 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 ad72919..9aa3bb8 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/upload-release-assets@v2.0
+ uses: AButler/upload-release-assets@v3.0
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 d082677..4095d34 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/upload-release-assets@v2.0
+ uses: AButler/upload-release-assets@v3.0
with:
files: 'src/windows-amd64.exe'
repo-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/readme.md b/readme.md
index f210407..aaa6611 100644
--- a/readme.md
+++ b/readme.md
@@ -1,13 +1,20 @@
## Whatsapp API Multi Device Version
-[](https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases)
+
-[](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-windows.yml)
-[](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-linux.yml)
-[](https://github.com/aldinokemal/go-whatsapp-web-multidevice/actions/workflows/deploy-mac.yml)
+
+
+
+
+
+
+### 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)