feat(server): remove create_by, update_by and update fields usage #182
This file contains hidden or 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: server | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'server/**' | |
| - '.github/workflows/server.yaml' | |
| permissions: | |
| contents: write | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22.3' | |
| - name: Download tools | |
| run: |- | |
| go install github.com/jzero-io/gorename@latest | |
| go install github.com/jaronnie/grum@latest | |
| - name: Upload to jaronnie/jzero-admin-deploy-server | |
| run: | | |
| cd server | |
| gorename github.com/jzero-io/jzero-admin/server/internal github.com/jzero-io/jzero-admin/server/server | |
| cd .. | |
| GITHUB_TOKEN=${{ secrets.ACCESS_TOKEN }} grum clone https://github.com/jaronnie/jzero-admin-deploy-server | |
| cd jzero-admin-deploy-server | |
| git config user.name "dependabot[bot]" | |
| git config user.email "49699333+dependabot[bot]@users.noreply.github.com" | |
| find . -type f -mindepth 1 ! -path "./api/*" ! -path "./vercel.json" ! -path "./.git/*" ! -path "./s.yaml" -exec rm -rf {} + | |
| cp -r ../server/. . | |
| git add . | |
| git diff-index --quiet HEAD || git commit -m "feat(server): update" | |
| git push -f |