feat: support i18n for chinese #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: setup go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "stable" | |
- name: compile | |
run: make all | |
- name: artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cacao | |
path: cacao-* | |
retention-days: 1 | |
- name: setup qemu | |
uses: docker/setup-qemu-action@v3 | |
- name: setup docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: login docker hub | |
uses: docker/login-action@v3 | |
with: | |
registry: docker.io | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
provenance: false | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
push: true | |
tags: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/cacao:latest |