Skip to content

Commit 16e9444

Browse files
authored
GitHub workflow for releases (#368)
* GitHub workflow for releases * avoid renaming * add workflow for tests * fix workflow name * one yaml for all * fix yaml * add missing pipe * add conditional * also rename that other var * remove empty version * print the go version * add name to step * add go version when building * split files * remove dependency * delete travis and add badge * CHANGE NAMES TO LOWER CASE
1 parent 941ec1f commit 16e9444

File tree

5 files changed

+87
-51
lines changed

5 files changed

+87
-51
lines changed

.github/workflows/build-docker-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
on:
44
schedule:

.github/workflows/release.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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 }}

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 ./...

.travis.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
Easy and fast file sharing from the command-line. This code contains the server with everything you need to create your own instance.
44

0 commit comments

Comments
 (0)