Skip to content

Commit

Permalink
Rename repo (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Jan 15, 2025
1 parent cf05bcc commit 75eaa86
Show file tree
Hide file tree
Showing 10 changed files with 101 additions and 78 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: install autotag binary
run: curl -sL https://git.io/autotag-install | sudo sh -s -- -b /usr/bin

- name: create release
run: |-
TAG=$(autotag)
Expand Down
22 changes: 10 additions & 12 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@ permissions:

jobs:
goreleaser:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
-
name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4

- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

GITHUB_TOKEN: ${{ secrets.GH_PAT }}
19 changes: 12 additions & 7 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ permissions:

jobs:
lint-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6
with:
version: v1.54
version: latest

- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...

- name: Test with the Go CLI
run: go test -v ./...
21 changes: 21 additions & 0 deletions .github/workflows/validate-renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: validate renovate.json5

on:
pull_request:

env:
LOG_LEVEL: debug

jobs:
renovate-config-validator:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: 20

- run: npx -p renovate renovate-config-validator renovate.json5
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
linters:
enable:
- gofmt

issues:
exclude-dirs:
- ../../go
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -36,11 +37,10 @@ changelog:
- '^test:'
brews:
- name: papercut
homepage: "https://github.com/lehigh-university-libraries/homebrew-papercut"
tap:
owner: lehigh-university-libraries
name: homebrew-papercut
homepage: "https://github.com/lehigh-university-libraries/papercut"
commit_author:
name: joecorall
email: [email protected]

repository:
owner: lehigh-university-libraries
name: homebrew
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Command line utility to help fetch scholarly articles from various sources.
You can install papercut using homebrew

```
brew tap lehigh-university-libraries/papercut
brew install papercut
brew tap lehigh-university-libraries/homebrew https://github.com/lehigh-university-libraries/homebrew
brew install lehigh-university-libraries/homebrew/papercut
```

### Download Binary

Instead of homebrew, you can download a binary for your system from [the latest release](https://github.com/lehigh-university-libraries/homebrew-papercut/releases/latest)
Instead of homebrew, you can download a binary for your system from [the latest release](https://github.com/lehigh-university-libraries/papercut/releases/latest)

Then put the binary in a directory that is in your `$PATH`

Expand Down Expand Up @@ -115,8 +115,8 @@ If the binary was downloaded and added to the `$PATH` updating papercut could lo
```
# update for your architecture
ARCH="papercut_Linux_x86_64.tar.gz"
TAG=$(gh release list --exclude-pre-releases --exclude-drafts --limit 1 --repo lehigh-university-libraries/homebrew-papercut | awk '{print $3}')
gh release download $TAG --repo lehigh-university-libraries/homebrew-papercut --pattern $ARCH
TAG=$(gh release list --exclude-pre-releases --exclude-drafts --limit 1 --repo lehigh-university-libraries/papercut | awk '{print $3}')
gh release download $TAG --repo lehigh-university-libraries/papercut --pattern $ARCH
tar -zxvf $ARCH
mv papercut /directory/in/path/binary/was/placed
rm $ARCH
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/lehigh-university-libraries/papercut

go 1.20
go 1.23.4

require github.com/spf13/cobra v1.7.0

Expand Down
47 changes: 0 additions & 47 deletions papercut.rb

This file was deleted.

42 changes: 42 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
extends: [
'config:best-practices',
':rebaseStalePrs',
],
packageRules: [
{
matchUpdateTypes: [
'minor',
'patch',
'digest',
],
groupName: 'bump-dependencies',
schedule: [
'after 10pm on Friday',
],
matchPackageNames: [
'*',
],
},
{
matchUpdateTypes: [
'major',
],
groupName: 'all major updates',
schedule: [
'after 10pm on the first day of the month',
],
matchPackageNames: [
'*',
],
},
],
labels: [
'dependencies',
],
osvVulnerabilityAlerts: true,
dependencyDashboardOSVVulnerabilitySummary: 'unresolved',
vulnerabilityAlerts: {
enabled: true,
},
}

0 comments on commit 75eaa86

Please sign in to comment.