Projects STRLCPY 0dayex-checker Commits 308fd91f
🤬
  • ■ ■ ■ ■ ■ ■
    .github/workflows/go.yml
     1 +name: Go
     2 + 
     3 +on:
     4 + push:
     5 + branches: [ "main" ]
     6 + pull_request:
     7 + branches: [ "main" ]
     8 + 
     9 +jobs:
     10 + 
     11 + build:
     12 + runs-on: ubuntu-latest
     13 + steps:
     14 + - uses: actions/checkout@v3
     15 + 
     16 + - name: Set up Go
     17 + uses: actions/setup-go@v3
     18 + with:
     19 + go-version: 1.18
     20 + 
     21 + - name: Build
     22 + run: |
     23 + go mod tidy
     24 + GOOS=windows GOARCH=amd64 go build -o 0dayex-checker-win64.exe -v ./...
     25 + GOOS=windows GOARCH=386 go build -o 0dayex-checker-win32.exe -v ./...
     26 + 
     27 + # Create release
     28 + - name: Generate release tag
     29 + id: tag
     30 + run: |
     31 + echo "::set-output name=release_tag::ActionBuild_$(date +"%Y.%m.%d_%H-%M-%S")"
     32 + - name: Release
     33 + uses: softprops/action-gh-release@v1
     34 + with:
     35 + tag_name: ${{ steps.tag.outputs.release_tag }}
     36 + files: |
     37 + ./0dayex-checker-*
     38 + # Done release
     39 + 
Please wait...
Page is in error, reload to recover