Skip to content

Commit

Permalink
Switch to new μpkg package format
Browse files Browse the repository at this point in the history
  • Loading branch information
andsens committed May 16, 2024
1 parent 8324d79 commit 2181ad6
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint

on:
push:
branches: ['*']
tags: ['!v*']
workflow_call: {}

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -x
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release

on:
push:
tags: ['v*']

jobs:
lint:
uses: ./.github/workflows/lint.yaml
secrets: inherit
release:
needs: [lint]
permissions:
contents: write
runs-on: ubuntu-latest
name: Create GitHub release
steps:
- uses: orbit-online/upkg-release@v1
with:
paths: records.sh LICENSE README.md
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Integrates with journald and Github actions.

## Contents

- [Installation](#installation)
- [Usage](#usage)
- [Dependencies](#dependencies)
- [Environment variables](#environment-variables)
Expand All @@ -24,6 +25,10 @@ Integrates with journald and Github actions.
- [Changing preferences](#changing-preferences)
- [Naming clashes](#naming-clashes)

## Installation

See [the latest release](https://github.com/orbit-online/records.sh/releases/latest) for instructions.

## Usage

Source the script with `source "records.sh"` and log messages with the
Expand Down
6 changes: 0 additions & 6 deletions bpkg.json

This file was deleted.

1 change: 1 addition & 0 deletions example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var=0x1f
info "The decimal version of %s is %d" "$var" "$var"

log_begin_grp 'A "printf | tee" demonstration'
# shellcheck disable=SC2209
printf 'teeing\nlines\nworks\nlike this' | LOGPROGRAM=printf tee_verbose
log_end_grp

Expand Down
2 changes: 1 addition & 1 deletion upkg.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"assets": ["records.sh"]
"name": "records.sh"
}

0 comments on commit 2181ad6

Please sign in to comment.