chore: 删除数据库SQL转储文件 #214
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
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Go | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.21.6 | |
| cache: true | |
| - name: Build bundle | |
| run: | | |
| GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -v -ldflags="-w -s" -o ./dist/linux-arm64/main ./main.go | |
| cd ./dist/linux-arm64/ | |
| tar zcvf ../../dist/main-linux-arm64.tgz ./* | |
| cd ../../ | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/heads/main') | |
| with: | |
| tag_name: Continuous-integration-${{ github.sha }} | |
| #token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
| files: | | |
| dist/*.tgz |