This commit is contained in:
		
							parent
							
								
									f07769fe9f
								
							
						
					
					
						commit
						14630eb6a0
					
				
							
								
								
									
										28
									
								
								.github/workflows/build_release.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/build_release.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
name: release
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    tags:
 | 
			
		||||
      - 'v*'
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  release:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4
 | 
			
		||||
        with:
 | 
			
		||||
          fetch-depth: 0
 | 
			
		||||
      - name: setup go
 | 
			
		||||
        uses: actions/setup-go@v5
 | 
			
		||||
        with:
 | 
			
		||||
          go-version: '>=1.22.1'
 | 
			
		||||
      - name: release-build-windows
 | 
			
		||||
        run: GOOS=windows GOARCH=amd64 go build -o bin/reverse-${{  github.ref_name }}-windows-amd64.exe
 | 
			
		||||
      - name: release-build-linux
 | 
			
		||||
        run: GOOS=linux GOARCH=amd64 go build -o bin/reverse-${{  github.ref_name }}-linux-amd64
 | 
			
		||||
      - name: Release
 | 
			
		||||
        uses: actions/release-action@main
 | 
			
		||||
        with:
 | 
			
		||||
          files: |-
 | 
			
		||||
            bin/**
 | 
			
		||||
          api_key: '${{secrets.RELEASE_TOKEN}}'
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user