File tree Expand file tree Collapse file tree 4 files changed +118
-0
lines changed Expand file tree Collapse file tree 4 files changed +118
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Go
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+
11
+ build :
12
+ name : Build
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+
16
+ - name : Set up Go 1.x
17
+ uses : actions/setup-go@v2
18
+ with :
19
+ go-version : ^1.13
20
+ id : go
21
+
22
+ - name : Check out code into the Go module directory
23
+ uses : actions/checkout@v2
24
+
25
+ - name : Get dependencies
26
+ run : |
27
+ go get -v -t -d ./...
28
+ if [ -f Gopkg.toml ]; then
29
+ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
30
+ dep ensure
31
+ fi
32
+
33
+ - name : Test
34
+ run : go test -v ./...
Original file line number Diff line number Diff line change
1
+ name : Snapcraft Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7
+
8
+ jobs :
9
+ snapcraft-release :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Check out Git repository
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Install Snapcraft
17
+ run : |
18
+ sudo snap install snapcraft --classic
19
+ sudo snap install lxd
20
+ sudo usermod --append --groups lxd $USER
21
+ echo "::add-path::/snap/bin"
22
+ sudo chown root:root /
23
+ sudo /snap/bin/lxd.migrate -yes
24
+ sudo /snap/bin/lxd waitready
25
+ sudo /snap/bin/lxd init --auto
26
+
27
+ # You can now run Snapcraft shell commands
28
+ - name : Use Snapcraft
29
+ run : snapcraft --help
30
+
31
+ - name : Login snapcraft
32
+ run : |
33
+ LOGIN_FILEPATH=/tmp/credential
34
+ echo "${{ secrets.SNAPCRAFT_TOKEN }}" > $LOGIN_FILEPATH
35
+ snapcraft login --with $LOGIN_FILEPATH
36
+
37
+ - name : Build snap
38
+ run : sg lxd -c 'snapcraft --use-lxd'
39
+
40
+ - name : Publish snap
41
+ run : |
42
+ snapcraft push ipfs-pinner_0+git.$(git rev-parse --short HEAD)_amd64.snap --release=stable,edge
43
+
Original file line number Diff line number Diff line change 1
1
# ipfs-pinner
2
2
3
+ [ ![ ipfs-pinner] ( https://snapcraft.io/ipfs-pinner/badge.svg )] ( https://snapcraft.io/ipfs-pinner )
4
+
3
5
` ipfs-pinner ` is a toolkit to help upload files or specific content id to IPFS pinning services.
4
6
5
7
## Installation
Original file line number Diff line number Diff line change
1
+ name : ipfs-pinner
2
+
3
+ version : ' git'
4
+
5
+ summary : A toolkit to upload files to IPFS pinning services.
6
+
7
+ description : |
8
+ ipfs-pinner is a toolkit to help upload files or specific content id to IPFS pinning services.
9
+ Website https://github.com/wabarc/ipfs-pinner
10
+
11
+ Supported Pinning Services:
12
+
13
+ 1.Infura
14
+ Infura is a freemium pinning service that doesn't require any additional setup. It's the default one used.
15
+ Please bear in mind that Infura is a free service, so there is probably a rate-limiting. https://infura.io
16
+ Usage:ipfs-pinner file-to-path
17
+
18
+ 2.Pinata
19
+ Pinata is a freemium pinning service. It gives you more control over what's uploaded.
20
+ You can delete, label and add custom metadata. This service requires signup. https://pinata.cloud/
21
+ Usage:ipfs-pinner -p pinata file-to-path
22
+
23
+ grade : stable
24
+
25
+ confinement : strict
26
+
27
+ base : core18
28
+
29
+ parts :
30
+ ipfs-pinner :
31
+ plugin : go
32
+ source : https://github.com/wabarc/ipfs-pinner.git
33
+ go-importpath : github.com/wabarc/ipfs-pinner/cmd/ipfs-pinner
34
+ build-packages :
35
+ - build-essential
36
+
37
+ apps :
38
+ ipfs-pinner :
39
+ command : ipfs-pinner
You can’t perform that action at this time.
0 commit comments