Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Snap
on:
workflow_dispatch:
push:
branches:
- master
tags:
- "lychee-v*"

jobs:
build:
if: startsWith(github.ref, 'refs/tags/lychee-v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: snapcore/action-build@v1
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: ${{ startsWith(github.ref, 'refs/tags/lychee-v') && 'stable' || 'edge'}}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Thumbs.db
/target/
debug/

# Generated by snapcraft
*.snap

# NOTE: Cargo.lock should be committed for workspaces with both binaries and libraries
# Cargo.lock

Expand Down
30 changes: 30 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: lychee
summary: Fast, async, stream-based link checker written in Rust
description: |
Finds broken hyperlinks and mail addresses, supports Markdown, HTML
and more, simple and lightweight

website: https://lychee.cli.rs/
issues: https://github.com/lycheeverse/lychee/issues
source-code: https://github.com/lycheeverse/lychee
license: Apache-2.0 OR MIT

adopt-info: lychee # set version automatically from git tag

grade: stable
confinement: strict
base: core24

parts:
lychee:
plugin: rust
source: .
build-packages:
- libssl-dev
override-pull: |
craftctl default
craftctl set version=$(git describe --tags --abbrev=10)

apps:
lychee:
command: lychee