github.com/yusys-cloud/go-jsonstore-rest@v0.0.0-20230228115429-0a54aa4a27a6/.github/workflows/release.yml (about) 1 # workflow name 2 name: Generate release-artifacts 3 4 # on events 5 on: 6 release: 7 types: 8 - created 9 10 # workflow tasks 11 12 # jobs 13 jobs: 14 # generate build cross-platform build files 15 generate: 16 name: Generate cross-platform builds 17 runs-on: ubuntu-latest 18 steps: 19 # step 1: checkout repository code 20 - name: Checkout the repository 21 uses: actions/checkout@v2 22 23 # step 2: generate build files 24 - name: Generate build files 25 uses: thatisuday/go-build-action@v1 26 with: 27 platforms: "linux/amd64, darwin/amd64, windows/amd64" 28 name: "go-jsonstore-rest" 29 compress: "true" 30 dest: "dist" 31 32 # step 3: upload build-artifacts 33 - name: Upload build-artifacts 34 uses: skx/github-action-publish-binaries@master 35 env: 36 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 37 with: 38 args: "./dist/*.tar.gz"