Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help #2167

Closed
wants to merge 185 commits into from
Closed

Help #2167

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
05ee3b4
docs: update chocolatey checklist (#1655)
lidel Sep 28, 2020
bc5db45
feat: go-ipfs v0.7.0 and ipfs-webui v2.11.2 (#1638)
rafaelramalho19 Sep 30, 2020
f85aabc
feat(ci): move to GitHub Actions (#1657)
lidel Oct 2, 2020
335e172
docs(readme): update tray troubleshooting (#1658)
lidel Oct 2, 2020
60df053
feat(i18n): ro locale
lidel Oct 2, 2020
ac7ab5a
chore: ipfs-desktop v0.13.0
lidel Oct 2, 2020
2cfd2f4
fix: ensure small asar archive (#1660)
lidel Oct 2, 2020
f2f34bf
chore: webui v2.11.3 (#1666)
lidel Oct 6, 2020
0fe2b2f
feat: ipfs-webui v2.11.4
lidel Oct 7, 2020
6a8aa35
chore(i18n): locale sync
lidel Oct 7, 2020
42b069b
chore: electron 9.3.2
lidel Oct 7, 2020
5199f95
docs: changelog for 0.13.0 (#1672)
jessicaschilling Oct 7, 2020
dad5ef9
chore: chocolate version bump
lidel Oct 7, 2020
38eb5af
docs: update readme and screenshots for 0.13.0 (#1673)
jessicaschilling Oct 7, 2020
1ffd652
chore: update bug report template (#1675)
jessicaschilling Oct 7, 2020
52f2c24
fix: windows auto-update (#1679)
lidel Oct 8, 2020
f489c82
feat(ci): automated Snapcraft publishing (#1678)
lidel Oct 8, 2020
b526407
0.13.1
lidel Oct 8, 2020
3e74cd0
fix: openItem errors (#1687)
lidel Oct 9, 2020
2112a49
feat: screenshot improvements (#1689)
lidel Oct 9, 2020
ff49478
fix: preserve filename during import
lidel Oct 9, 2020
2d5794b
fix: OS integrations for quick file import (#1691)
lidel Oct 12, 2020
c3051d8
fix(windows): autoInstallOnAppQuit (#1682)
lidel Oct 12, 2020
d6a8637
0.13.2
lidel Oct 12, 2020
26b8db0
docs: updates for 0.13.2 (#1681)
jessicaschilling Oct 12, 2020
c62a96c
Add Windows user notes for 0.13.2
jessicaschilling Oct 13, 2020
42bab7c
fix: use correct config path during development (#1690)
lidel Oct 13, 2020
8201a02
feat: automated Chocolatey publishing (#1697)
lidel Oct 14, 2020
0dc2de7
feat: rework readme (#1703)
jessicaschilling Oct 22, 2020
0aadd7c
Fix Homebrew instructions (#1727)
rmorey Jan 5, 2021
2f531e4
Explicitly specify content-type in prompt template (#1729)
jessicaschilling Jan 8, 2021
de2f752
Brew cask has been deprecated (#1732)
chriscn Jan 18, 2021
6dbfa13
feat: enable pubsub via settings menu (#1735)
andrew Jan 20, 2021
cc4144f
style: tweak title of npm on ipfs preference (#1742)
andrew Jan 25, 2021
204e206
feat: disable/enable gc via settings menu (#1740)
andrew Jan 25, 2021
90b1ad1
feat: enable ipns over pubsub via settings menu (#1739)
andrew Jan 25, 2021
3c69d4c
fix: autoupdate only on supported platforms (#1698)
lidel Jan 25, 2021
2754f25
fix: default Open WebUI at Launch to true (#1757)
Feb 11, 2021
0ff806a
fix: timeout during checkIfAddrIsDaemon (#1750)
lidel Feb 11, 2021
36ff4e4
feat: improve updating ux (#1758)
Feb 13, 2021
229c4b0
Remove GUI group ref
jessicaschilling Feb 15, 2021
49c18a5
feat: go-ipfs 0.8.0 (#1715)
lidel Feb 19, 2021
2f1631d
chore(i18n): locale sync
lidel Feb 19, 2021
71756f5
chore: 0.14.0
lidel Feb 19, 2021
1e00334
refactor: tray click events (#1766)
lidel Feb 23, 2021
1757874
feat: deprecate experiments
lidel Feb 23, 2021
81e648d
chore: deprecate ipfs-on-path (#1768)
lidel Feb 23, 2021
4c5c02d
fix(mac): refresh file list after import (#1767)
lidel Feb 23, 2021
9bdeb2a
chore(i18n): sync locales
lidel Feb 23, 2021
61519a2
docs: 0.14.0
lidel Feb 23, 2021
0f49825
chore: dev as 0.14.1
lidel Feb 23, 2021
4b989b1
docs: promote AppImage for Linux (#1776)
lidel Mar 2, 2021
b35d27e
docs(readme): fix scoop install steps (#1808)
dzmitry-lahoda Apr 30, 2021
50b6ee9
refactor: ipfs-on-path should never fail on boot (#1769)
lidel Apr 30, 2021
1d68c58
chore: switch actions to v2 (#1708)
lidel Apr 30, 2021
48ced37
feat: ipfs-webui 2.12.1 and electron 12.x (#1807)
lidel Apr 30, 2021
497ded1
docs: locale sync command fix
lidel Apr 30, 2021
2fff3ea
0.15.0
lidel Apr 30, 2021
6060f8e
docs: 0.15.0
lidel May 4, 2021
51ddadd
chore(i18n): locale sync
lidel Jun 16, 2021
4f0fb79
fix: useful errors on download fail (#1843)
lidel Jun 17, 2021
292b3b5
chore: ipfs-webui v2.12.3
lidel Jun 17, 2021
45b5c79
0.15.1
lidel Jun 17, 2021
0b58d15
docs: simplify tag creation
lidel Jun 17, 2021
cb15e70
docs: v0.15.1
lidel Jun 17, 2021
f9bb402
fix: snapcraft ci job (#1844)
lidel Jun 17, 2021
591bac2
fix: flexible snapcraft publishing (#1845)
lidel Jun 17, 2021
e9a0443
feat: go-ipfs 0.9 (#1826)
lidel Jun 23, 2021
97f92e9
docs(readme): add winget instructions (#1817)
FireMasterK Jun 23, 2021
56dd33a
chore(i18n): locale sync
lidel Jun 23, 2021
71a8f5f
0.16.0
lidel Jun 23, 2021
cec19bd
docs: 0.16.0
lidel Jun 23, 2021
2a0268d
fix: choco publishing
lidel Jun 23, 2021
22d189c
fix: show Files after import on windows (#1853)
lidel Jul 5, 2021
7c4acf3
fix: dont pin when adding to mfs (#1860)
lidel Jul 5, 2021
a76e2aa
fix: ipfs-webui v2.12.4 (#1868)
lidel Jul 5, 2021
49ce2c9
chore(i18n): locale sync
lidel Jul 5, 2021
f57364f
0.16.1
lidel Jul 5, 2021
5a13c8e
chore: better error reporting from gui
lidel Jul 6, 2021
c345ecc
docs: 0.16.1
lidel Jul 6, 2021
e0e0730
chore: add stale bot
lidel Jul 19, 2021
eea1852
fix: go-ipfs 0.9.1 (#1876)
lidel Jul 22, 2021
43da717
chore: electron v13.1.7
lidel Jul 22, 2021
140278c
chore(i18n): locale sync
lidel Jul 22, 2021
7c4148d
0.16.2
lidel Jul 22, 2021
7a5dcf4
docs: 0.16.2
lidel Jul 22, 2021
b49dbc6
chore: update maintainer AUR (#1880)
RubenKelevra Aug 3, 2021
dd94413
docs: FreeBSD Linux Binary Compatibility (#1878)
lidel Aug 17, 2021
d6e0189
fix: use context bridge (#1894)
hacdias Sep 1, 2021
902f460
chore: update non-major dependencies (#1895)
hacdias Sep 6, 2021
02da0d2
feat: ipfs-webui v2.13.0 (#1903)
lidel Sep 6, 2021
c3d8e9f
feat: allow to show devtools (#1901)
milahu Sep 6, 2021
b74a718
chore(i18n): locale sync
lidel Sep 6, 2021
9683ff2
docs: debian 11 dependency workaround
lidel Sep 6, 2021
b804474
docs: debian 11 troubleshooting
lidel Sep 7, 2021
7abe279
0.16.3
lidel Sep 7, 2021
6eff79b
docs: v0.16.3
lidel Sep 7, 2021
fcbde1b
chore: adjust stale bot to 30+30 days
lidel Sep 8, 2021
35b312a
feat: go-ipfs 0.10.0 (#1896)
guseggert Oct 1, 2021
18c34e3
fix(ci): cache ipfs-webui (#1913)
lidel Oct 1, 2021
cb611d2
fix: store analytics in app.getPath(userData) (#1900)
milahu Oct 1, 2021
522af43
chore: default --agent-version-suffix and --routing (#1914)
lidel Oct 4, 2021
3c60f7a
chore(i18n): locale sync
lidel Oct 4, 2021
b825f52
chore: electron v13.5.1 and other deps (#1915)
lidel Oct 4, 2021
7c52a39
chore: switch to i18next-fs-backend (#1916)
lidel Oct 4, 2021
39ce26f
0.17.0
lidel Oct 5, 2021
86bf9a5
docs: 0.17.0
lidel Oct 5, 2021
ae3f40e
fix: remove zip for Squirrel.Mac (#1932)
lidel Dec 3, 2021
7c52dc7
feat: go-ipfs 0.11.0 (#1936)
lidel Dec 10, 2021
b350681
chore: release prep (#1938)
lidel Dec 10, 2021
199d101
0.18.0
lidel Dec 10, 2021
fb8645d
fix: restore zip for macOS autoupdates
lidel Dec 13, 2021
b73c1cc
0.18.1
lidel Dec 13, 2021
a8d43fb
fix: add .manualCheckForUpdates before tray startup (#1950)
hacdias Jan 21, 2022
a246daa
chore: update ipfs deps (#1899)
hacdias Jan 21, 2022
c419403
chore: uninstall npm on ipfs (#1947)
hacdias Jan 21, 2022
3b13847
chore: smaller dep updates (#1959)
lidel Jan 21, 2022
65599b9
fix: electron version (#1965)
hacdias Feb 1, 2022
b266d9b
chore: update dependencies (#1960)
hacdias Feb 1, 2022
908c972
feat: better handling of 'unresponsive' event (#1952)
hacdias Feb 1, 2022
1220244
chore: ipfs-webui v2.14.0 (#1970)
lidel Feb 3, 2022
80ee282
refactor: remove deprecated "ipfs on PATH" feature (#1948)
hacdias Feb 3, 2022
0669286
feat: electron 17 and playwright tests (#1937)
hacdias Feb 4, 2022
fa17bdd
chore: update dependencies
lidel Feb 4, 2022
50c31bb
chore(i18n): locale sync
lidel Feb 7, 2022
13de174
fix: dialog when IPFS_PATH/api port is offline
lidel Feb 8, 2022
3bc3a8a
0.19.0
lidel Feb 8, 2022
4ff45f2
feat: ipfs-webui v2.15.0
lidel Feb 11, 2022
89b0d7f
fix: os-native add-to-ipfs on Windows and macOS (#1976)
hacdias Feb 11, 2022
d78b2d4
docs(fix): tx pull with latest client
lidel Feb 11, 2022
a942d4d
0.19.1
lidel Feb 11, 2022
ef9b347
fix: macos autoupdate flow (#1979)
lidel Feb 16, 2022
e9e3045
0.19.2
lidel Feb 16, 2022
47c9eca
0.19.3
lidel Feb 16, 2022
9adbd5f
docs: link to 0.19.3
lidel Feb 23, 2022
348206c
fix(ci): chocolatey publish
lidel Feb 24, 2022
0aa990f
fix: remove lower bound from gateway and api port lookup (#1991)
hacdias Mar 1, 2022
bf2bfe5
chore(i18n): locale sync
lidel Mar 1, 2022
bb2d1ef
feat: show repo migration (go-ipfs 0.12.0) (#1982)
hacdias Mar 1, 2022
5da01b8
chore: electron 17.1 and related deps (#1998)
lidel Mar 1, 2022
f799fb7
0.20.0
lidel Mar 1, 2022
296bf77
chore(i18n): locale sync
lidel Mar 3, 2022
c620f50
fix: migration fallback to ipfs (#2008)
lidel Mar 3, 2022
a9c7fe0
refactor: remove mocha/chai, fix e2e on windows (#2007)
lidel Mar 4, 2022
a05a97a
fix(ci): increase e2e timeout
lidel Mar 4, 2022
1080448
chore: bug label
lidel Mar 4, 2022
744ef70
fix: increase free port lookup range (#2010)
lidel Mar 4, 2022
8aafe46
fix: gui error report title (#2011)
lidel Mar 4, 2022
29b219f
0.20.1
lidel Mar 4, 2022
3c97766
docs: 0.20.1 (#2012)
lidel Mar 7, 2022
cc06bcc
fix: ux of notification after file import (#2013)
lidel Mar 7, 2022
a2289f4
refactor: remove checkCorsConfig (#1955)
hacdias Mar 14, 2022
e608560
docs: debian 11 (#2033)
lidel Mar 14, 2022
fea18ea
feat: add known webui addresses to CORS conf (#1956)
hacdias Mar 14, 2022
d63a689
fix: pass ipfs config show error (#2032)
lidel Mar 14, 2022
f99aa5f
fix: proper catch-all daemon startup errors (#2030)
lidel Mar 14, 2022
91d65ff
0.20.2
lidel Mar 15, 2022
cdca6e5
docs: 0.20.2
lidel Mar 15, 2022
0c1f1ce
docs: discourage snap
lidel Mar 15, 2022
61635ac
fix: ipfs-companion rpc api in go-ipfs <0.13 (#2054)
lidel Mar 21, 2022
d032221
chore(i18n): locale sync
lidel Mar 21, 2022
34a1c48
0.20.3
lidel Mar 21, 2022
81fbfa7
refactor: remove 'download' functionality (#2061)
hacdias Mar 24, 2022
12306b3
fix: lower config.Swarm.ConnMgr (#2055)
lidel Mar 25, 2022
c00f222
chore: remove unused and update dependencies (#2047)
hacdias Mar 25, 2022
cc75a1c
fix: detect invalid or corrupted repository (#2067)
hacdias Mar 25, 2022
ee3e4ee
fix: static message when ipfs daemon dies on start (#2078)
lidel Mar 25, 2022
e8d8b3a
chore(i18n): locale sync
lidel Mar 25, 2022
2fc7479
chore(deps): bump minimist from 1.2.5 to 1.2.6 (#2064)
dependabot[bot] Mar 28, 2022
806684d
chore: plist 3.0.5
lidel Mar 28, 2022
02cbe39
docs: v0.20.3
lidel Mar 28, 2022
8eb69f1
0.20.4
lidel Mar 28, 2022
50090f2
docs: v0.20.4
lidel Mar 28, 2022
f9467f1
chore: set stalebot window 6+7 days
lidel Apr 4, 2022
f620d45
chore: electron 18 and go-ipfs 0.12.2 (#2098)
lidel Apr 8, 2022
030757c
0.20.5
lidel Apr 8, 2022
b0c17ec
docs: 0.20.5
lidel Apr 8, 2022
d389733
fix: return error instead of throw (#2074)
hacdias Apr 11, 2022
f5dd54f
docs(readme): correct ipfs-desktop GitHub link (#2119)
schuelermine Apr 30, 2022
9b31e09
docs(readme): add repo.lock troubleshooting steps to readme (#2111)
SgtPooki May 10, 2022
98102c7
feat: ready/load metrics (#2126)
SgtPooki May 10, 2022
4d3f828
0.20.6
SgtPooki May 11, 2022
bc321a6
docs: v0.20.6 (#2137)
SgtPooki May 12, 2022
ac17bb2
fix: remove hardcoded DHT client routing (#2152)
2color May 23, 2022
e77083e
chore: remove deprecated ipfs-on-path, npm-on-ipfs (#2140)
hacdias May 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json text eol=lf
package-lock.json text eol=lf
9 changes: 5 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
name: Bug report
about: Create a bug report
title: ''
labels: need/triage
labels: kind/bug, need/triage
assignees: ''

---
- OS: [e.g. macOS, Windows, Linux]
- Version of IPFS Desktop [e.g. 0.11.1]

- OS: [e.g. macOS, Windows, Linux]
- Version of IPFS Desktop [e.g. 0.20.0]

**Describe the bug**
A clear and concise description of what the bug is.
Expand All @@ -32,7 +33,7 @@ Add any other context about the problem here.
ATTACH LOGS

If possible:
1. Go to `Advanced` → `Open Logs Directory`
1. From the "IPFS icon" menu in your menubar/system tray, go to `Advanced` → `Open Logs Directory` *(for Linux users who do not have this menu, logs can be found in `$HOME/.config/IPFS Desktop` )*
2. Find `*.log` files
3. Attach `error.log` and `combined.log` to this issue.
-->
52 changes: 52 additions & 0 deletions .github/workflows/chocolatey.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: chocolatey

on:
workflow_dispatch:
inputs:
manual_name:
required: true
description: 'Release number to publish (without v prefix)'
default: '0.0.0'
release:
types: [published]

env:
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
ELECTRON_CACHE: ${{ github.workspace }}/.cache/electron
ELECTRON_BUILDER_CACHE: ${{ github.workspace }}/.cache/electron-builder
release_name: ${{ github.event.inputs.manual_name || github.event.release.name }}

jobs:
publish:
runs-on: windows-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Cache bigger downloads
uses: actions/cache@v2
id: cache
with:
path: ${{ github.workspace }}/.cache
key: ${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
${{ runner.os }}-

- name: Install dependencies
run: npm ci --prefer-offline --no-audit --progress=false --cache ${{ github.workspace }}/.cache/npm

- name: Download .exe, update version, URL and hash
run: node pkgs\chocolatey\update.mjs ${{ env.release_name }}

- name: Create .nupkg
run: cd pkgs\chocolatey && choco pack

- name: Publish to Chocolatey
run: choco push pkgs/chocolatey/ipfs-desktop.${{ env.release_name }}.nupkg --key ${{ secrets.chocolatey_key }} --source "https://push.chocolatey.org"
213 changes: 213 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
name: ci
on: [push, pull_request]

env:
XDG_CACHE_HOME: ${{ github.workspace }}/.cache
ELECTRON_CACHE: ${{ github.workspace }}/.cache/electron
ELECTRON_BUILDER_CACHE: ${{ github.workspace }}/.cache/electron-builder

jobs:

webui:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'

- name: Cache webui
uses: actions/cache@v2
id: webui-cache
with:
path: assets/webui
key: ${{ hashFiles('package.json') }} # webui CID is defined in this file

- name: Cache bigger downloads
uses: actions/cache@v2
id: cache
if: steps.webui-cache.outputs.cache-hit != 'true'
with:
path: ${{ github.workspace }}/.cache
key: ${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
${{ runner.os }}-

- uses: ipfs/download-ipfs-distribution-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'
with:
name: go-ipfs
- uses: ipfs/start-ipfs-daemon-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'


- name: Install dependencies and fetch ipfs-webui
if: steps.webui-cache.outputs.cache-hit != 'true'
run: |
npm ci --prefer-offline --no-audit --progress=false --cache ${{ github.workspace }}/.cache/npm
npm run clean
npm run force-webui-download

- name: Attach cached ipfs-webui to Github Action
uses: actions/upload-artifact@v2
with:
name: ipfs-webui
path: assets/webui
if-no-files-found: error

test:
runs-on: ${{ matrix.os }}
needs: webui
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'

- name: Cache webui
uses: actions/cache@v2
id: webui-cache
with:
path: assets/webui
key: ${{ hashFiles('package.json') }}

- name: Cache bigger downloads
uses: actions/cache@v2
id: cache
with:
path: ${{ github.workspace }}/.cache
key: ${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
${{ runner.os }}-

- uses: ipfs/download-ipfs-distribution-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'
with:
name: go-ipfs
- uses: ipfs/start-ipfs-daemon-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'

- name: Install dependencies
run: npm ci --prefer-offline --no-audit --progress=false --cache ${{ github.workspace }}/.cache/npm

- name: Build
run: npm run build

- name: Stop any ipfs daemon before tests
run: ipfs shutdown || true
shell: bash

- name: Test
run: npm run test

- name: Test end-to-end
uses: GabrielBB/xvfb-action@86d97bde4a65fe9b290c0b3fb92c2c4ed0e5302d # v1.6
with:
working-directory: ${{ github.workspace }}
run: npm run test:e2e

- name: Lint
run: npm run lint

build:
runs-on: ${{ matrix.os }}
needs: test # build packages only if tests passed
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'

- name: Cache webui
uses: actions/cache@v2
id: webui-cache
with:
path: assets/webui
key: ${{ hashFiles('package.json') }}

- name: Cache bigger downloads
uses: actions/cache@v2
id: cache
with:
path: ${{ github.workspace }}/.cache
key: ${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'electron-builder.yml') }}
${{ runner.os }}-

- uses: ipfs/download-ipfs-distribution-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'
with:
name: go-ipfs
- uses: ipfs/start-ipfs-daemon-action@v1
if: steps.webui-cache.outputs.cache-hit != 'true'

- name: Install dependencies
run: npm ci --prefer-offline --no-audit --progress=false --cache ${{ github.workspace }}/.cache/npm

- name: Build
run: npm run build

- name: Get tag
id: tag
uses: dawidd6/action-get-tag@12319896edaa290b27558e34a177804e9b8d077b # v1
continue-on-error: true # empty steps.tag.outputs.tag will inform the next step

- name: Build binaries with electron-builder
uses: samuelmeuli/action-electron-builder@92327c67bc45ff7c38bf55d8aa8c4d75b7ea38e7 # v1.6.0 but safer than a tag that can be changed
with:
args: --publish onTag # attach signed binaries to a release draft only when building a tag
release: false # keep github release as draft for manual inspection
max_attempts: 2
# GH token for attaching atrifacts to release draft on tag build
github_token: ${{ secrets.github_token }}
# Windows signing
windows_certs: ${{ secrets.windows_certs }}
windows_certs_password: ${{ secrets.windows_certs_password }}
# Apple signing
mac_certs: ${{ secrets.mac_certs }}
mac_certs_password: ${{ secrets.mac_certs_password }}
env:
CI_BUILD_TAG: ${{steps.tag.outputs.tag}} # used by --publish onTag
# Apple notarization
APPLEID: ${{ secrets.apple_id }}
APPLEIDPASS: ${{ secrets.apple_id_pass }}

- name: Show dist/
run: du -sh dist/ && ls -l dist/

# Persist produced binaries and effective config used for building them
# - this is not for releases, but for quick testing during the dev
# - action artifacts can be downloaded for 90 days, then are removed by github
# - binaries in PRs from forks won't be signed
- name: Attach produced packages to Github Action
uses: actions/upload-artifact@v2
with:
name: dist-${{ matrix.os }}
path: dist/*esktop*.*
if-no-files-found: error

- name: Show Cache
run: du -sh ${{ github.workspace }}/.cache/ && ls -l ${{ github.workspace }}/.cache/

31 changes: 31 additions & 0 deletions .github/workflows/snapcraft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: snapcraft

on:
workflow_dispatch:
inputs:
manual_name:
required: true
description: 'Release number to publish (without v prefix)'
default: '0.0.0'
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
env:
SNAP_RELEASE_NAME: ${{ github.event.inputs.manual_name || github.event.release.name }}
steps:
- name: Download .snap artifact
uses: dsaltares/fetch-gh-release-asset@0efe227dedb360b09ea0e533795d584b61c461a9 # 0.06
with:
repo: ipfs/ipfs-desktop
version: tags/v${{ env.SNAP_RELEASE_NAME }}
file: ipfs-desktop-${{ env.SNAP_RELEASE_NAME }}-linux-amd64.snap
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Snapcraft
uses: snapcore/action-publish@f1879414dc5500e02a36f3d715bca6ddd438c913 # 1.0.2
with:
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
snap: ipfs-desktop-${{ env.SNAP_RELEASE_NAME }}-linux-amd64.snap
release: stable
25 changes: 25 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Close and mark stale issue

on:
schedule:
- cron: '0 0 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.'
close-issue-message: 'This issue was closed because it is missing author input.'
stale-issue-label: 'kind/stale'
any-of-labels: 'hint/needs-author-input,need/author-input'
days-before-issue-stale: 6
days-before-issue-close: 7
enable-statistics: true
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

Loading