-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a possibility to attach files (#1)
Added a possibility to upload files now along the paste as attachments. Due to this feature you can easily now upload smaller config files to paste.me to securely share it with others. This is not intended to store files long-term, it is really just a way to quickly move files between instances without having to copy/paste it or send it in an unsecure manner. Tests added too!
- Loading branch information
Showing
10 changed files
with
217 additions
and
86 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Build pasteme-cli | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
linux_amd64: | ||
name: Build pasteme-cli on linux/amd64 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.15 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
- name: Build pasteme-cli on linux/amd64 | ||
run: go build -v -o build/pasteme-cli-linux-amd64 | ||
|
||
- name: Test | ||
run: go test -v -cover -coverprofile=profile-linux-amd64.out ./... | ||
|
||
- name: Codecov linux/amd64 | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./profile-linux-amd64.out | ||
name: coverage linux/amd64 | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: build/ | ||
windows_amd64: | ||
name: Build pasteme-cli on windows/amd64 | ||
runs-on: windows-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.13 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
- name: Build pasteme-cli on windows/amd64 | ||
run: go build -v -o build/pasteme-cli-windows-amd64.exe | ||
|
||
- name: Test | ||
run: go test -v | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: build/ | ||
darwin_amd64: | ||
name: Build pasteme-cli on darwin/amd64 | ||
runs-on: macos-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.13 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
- name: Build pasteme-cli on darwin/amd64 | ||
run: go build -v -o build/pasteme-cli-darwin-amd64 | ||
|
||
- name: Test | ||
run: go test -v | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
# A file, directory or wildcard pattern that describes what to upload | ||
path: build/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.