File tree Expand file tree Collapse file tree 5 files changed +87
-51
lines changed Expand file tree Collapse file tree 5 files changed +87
-51
lines changed Original file line number Diff line number Diff line change 1- name : Deploy multi-architecture Docker images for transfer.sh with buildx
1+ name : deploy multi-architecture Docker images for transfer.sh with buildx
22
33on :
44 schedule :
Original file line number Diff line number Diff line change 1+ name : release
2+ on :
3+ push :
4+ tags :
5+ - v*
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ strategy :
10+ matrix :
11+ GOOS : [ darwin, linux, windows ]
12+ GOARCH : [ amd64 ]
13+ include :
14+ - GOOS : darwin
15+ GOARCH : amd64
16+ suffix : darwin-amd64
17+ - GOOS : windows
18+ GOARCH : amd64
19+ suffix : windows-amd64.exe
20+ - GOOS : linux
21+ GOARCH : amd64
22+ suffix : linux-amd64
23+ - GOOS : linux
24+ GOARCH : arm
25+ suffix : linux-armv7
26+ steps :
27+ - uses : actions/checkout@v2
28+ - uses : actions/setup-go@v2
29+ with :
30+ go-version : 1.16.x
31+ - name : Build ${{ matrix.suffix }} (GOOS=${{ matrix.GOOS }}, GOARCH=${{ matrix.GOARCH }})
32+ env :
33+ GOOS : ${{ matrix.GOOS }}
34+ GOARCH : ${{ matrix.GOARCH }}
35+ run : |
36+ go version
37+ go build -o ./artifacts/transfersh-${GITHUB_REF##*/}-${{ matrix.suffix }}
38+ - uses : actions/upload-artifact@v2
39+ name : Upload artifacts
40+ with :
41+ name : artifacts
42+ path : ./artifacts
43+
44+ release :
45+ runs-on : ubuntu-latest
46+ needs : [ build ]
47+ steps :
48+ - uses : actions/download-artifact@v2
49+ name : Download artifacts
50+ with :
51+ name : artifacts
52+ path : ./artifacts
53+ - name : Publish artifacts
54+ uses : softprops/action-gh-release@v1
55+ with :
56+ files : ' ./artifacts/*'
57+ env :
58+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : test
2+ on :
3+ push :
4+ branches :
5+ - " *"
6+ jobs :
7+ test :
8+ runs-on : ubuntu-latest
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ go_version :
13+ - 1.13.x
14+ - 1.14.x
15+ - 1.15.x
16+ - 1.16.x
17+ name : Test with ${{ matrix.go_version }}
18+ steps :
19+ - uses : actions/checkout@v2
20+ - uses : actions/setup-go@v1
21+ with :
22+ go-version : ${{ matrix.go_version }}
23+ - name : Vet and test
24+ run : |
25+ go version
26+ go vet ./...
27+ go test ./...
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # transfer.sh [ ![ Gitter] ( https://badges.gitter.im/Join%20Chat.svg )] ( https://gitter.im/dutchcoders/transfer.sh?utm_source=badge&utm_medium=badge&utm_campaign=&utm_campaign=pr-badge&utm_content=badge ) [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/dutchcoders/transfer.sh )] ( https://goreportcard.com/report/github.com/dutchcoders/transfer.sh ) [ ![ Docker pulls] ( https://img.shields.io/docker/pulls/dutchcoders/transfer.sh.svg )] ( https://hub.docker.com/r/dutchcoders/transfer.sh/ ) [ ![ Build Status] ( https://travis-ci .com/dutchcoders/transfer.sh. svg?branch=master )] ( https://travis-ci .com/dutchcoders/transfer.sh )
1+ # transfer.sh [ ![ Gitter] ( https://badges.gitter.im/Join%20Chat.svg )] ( https://gitter.im/dutchcoders/transfer.sh?utm_source=badge&utm_medium=badge&utm_campaign=&utm_campaign=pr-badge&utm_content=badge ) [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/dutchcoders/transfer.sh )] ( https://goreportcard.com/report/github.com/dutchcoders/transfer.sh ) [ ![ Docker pulls] ( https://img.shields.io/docker/pulls/dutchcoders/transfer.sh.svg )] ( https://hub.docker.com/r/dutchcoders/transfer.sh/ ) [ ![ Build Status] ( https://github .com/dutchcoders/transfer.sh/actions/workflows/test.yml/badge. svg?branch=master )] ( https://github .com/dutchcoders/transfer.sh/actions/workflows/test.yml?query=branch%3Amaster )
22
33Easy and fast file sharing from the command-line. This code contains the server with everything you need to create your own instance.
44
You can’t perform that action at this time.
0 commit comments