-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
WaybackBot
committed
Aug 21, 2020
1 parent
ed4a130
commit 11af20f
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
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,43 @@ | ||
name: Snapcraft Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
snapcraft-release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Snapcraft | ||
run: | | ||
sudo snap install snapcraft --classic | ||
sudo snap install lxd | ||
sudo usermod --append --groups lxd $USER | ||
echo "::add-path::/snap/bin" | ||
sudo chown root:root / | ||
sudo /snap/bin/lxd.migrate -yes | ||
sudo /snap/bin/lxd waitready | ||
sudo /snap/bin/lxd init --auto | ||
# You can now run Snapcraft shell commands | ||
- name: Use Snapcraft | ||
run: snapcraft --help | ||
|
||
- name: Login snapcraft | ||
run: | | ||
LOGIN_FILEPATH=/tmp/credential | ||
echo "${{ secrets.SNAPCRAFT_TOKEN }}" > $LOGIN_FILEPATH | ||
snapcraft login --with $LOGIN_FILEPATH | ||
- name: Build snap | ||
run: sg lxd -c 'snapcraft --use-lxd' | ||
|
||
- name: Publish snap | ||
run: | | ||
snapcraft push wayback_0+git.$(git rev-parse --short HEAD)_amd64.snap --release=stable,edge | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: wayback | ||
|
||
version: 'git' | ||
|
||
summary: A toolkit to upload files to IPFS pinning services. | ||
|
||
description: | | ||
A toolkit for snapshot webpage to the Wayback Machine. | ||
Website https://github.com/wabarc/wayback | ||
grade: stable | ||
|
||
confinement: strict | ||
|
||
base: core18 | ||
|
||
parts: | ||
wayback: | ||
plugin: go | ||
source: https://github.com/wabarc/wayback.git | ||
go-importpath: github.com/wabarc/wayback/cmd/wayback | ||
|
||
apps: | ||
wayback: | ||
command: wayback |