From f6f5e5a143d7f0d847cc21266996d4916385d571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sat, 24 Aug 2024 14:49:30 +0200 Subject: [PATCH 1/9] chore: go mod tidy --- go.mod | 2 +- go.sum | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 9add194..76b6fcb 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.23.0 require ( github.com/blang/semver/v4 v4.0.0 + github.com/go-git/go-billy/v5 v5.5.0 github.com/go-git/go-git/v5 v5.12.0 github.com/google/go-github/v63 v63.0.0 github.com/leodido/go-conventionalcommits v0.12.0 @@ -21,7 +22,6 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/emirpasic/gods v1.18.1 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect - github.com/go-git/go-billy/v5 v5.5.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect diff --git a/go.sum b/go.sum index 4678ca7..b5f7d57 100644 --- a/go.sum +++ b/go.sum @@ -13,8 +13,6 @@ github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cloudflare/circl v1.3.9 h1:QFrlgFYf2Qpi8bSpVPK1HBvWpx16v/1TZivyo7pGuBE= -github.com/cloudflare/circl v1.3.9/go.mod h1:PDRU+oXvdD7KCtgKxW95M5Z8BpSCJXQORiZFnBQS5QU= github.com/cloudflare/circl v1.4.0 h1:BV7h5MgrktNzytKmWjpOtdYrf0lkkbF8YMlBGPhJQrY= github.com/cloudflare/circl v1.4.0/go.mod h1:PDRU+oXvdD7KCtgKxW95M5Z8BpSCJXQORiZFnBQS5QU= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= From 9aec0ea7da3c168c823ff2247568b13235a9b9de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sat, 24 Aug 2024 15:06:59 +0200 Subject: [PATCH 2/9] chore(main): release v0.2.0-beta.0 (#17) --- CHANGELOG.md | 5 +++++ action.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01ed7bd..87b4b4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [v0.2.0-beta.0](https://github.com/apricote/releaser-pleaser/releases/tag/v0.2.0-beta.0) +### Features + +- update version references in any files (#14) + ## [v0.1.0](https://github.com/apricote/releaser-pleaser/releases/tag/v0.1.0) ### This is the first release ever, so it also includes a lot of other functionality. diff --git a/action.yml b/action.yml index 075c8b1..5b07ee1 100644 --- a/action.yml +++ b/action.yml @@ -19,7 +19,7 @@ inputs: outputs: {} runs: using: 'docker' - image: ghcr.io/apricote/releaser-pleaser:v0.1.0 # x-releaser-pleaser-version + image: ghcr.io/apricote/releaser-pleaser:v0.2.0-beta.0 # x-releaser-pleaser-version args: - run - --forge=github From 60b73b6dd977fac0b615a0bf53f68423600e8511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sat, 24 Aug 2024 15:14:27 +0200 Subject: [PATCH 3/9] fix(ci): building release image fails (#21) --- .github/workflows/release.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b684f77..2c87858 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,6 +17,5 @@ jobs: with: go-version-file: go.mod - - uses: ko-build/setup-ko@v0.7 - - run: ko build --bare --tags ${{ github.ref_name }} + - run: ko build --bare --tags ${{ github.ref_name }} github.com/apricote/releaser-pleaser/cmd/rp From e96e5107e53980fef7cf8072352df86e6b918109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sat, 24 Aug 2024 15:15:18 +0200 Subject: [PATCH 4/9] chore(main): release v0.2.0-beta.1 (#19) Co-authored-by: releaser-pleaser <> --- CHANGELOG.md | 9 +++++++++ action.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87b4b4f..242ee08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [v0.2.0-beta.1](https://github.com/apricote/releaser-pleaser/releases/tag/v0.2.0-beta.1) +### Features + +- update version references in any files (#14) + +### Bug Fixes + +- **ci**: building release image fails (#21) + ## [v0.2.0-beta.0](https://github.com/apricote/releaser-pleaser/releases/tag/v0.2.0-beta.0) ### Features diff --git a/action.yml b/action.yml index 5b07ee1..e5adb50 100644 --- a/action.yml +++ b/action.yml @@ -19,7 +19,7 @@ inputs: outputs: {} runs: using: 'docker' - image: ghcr.io/apricote/releaser-pleaser:v0.2.0-beta.0 # x-releaser-pleaser-version + image: ghcr.io/apricote/releaser-pleaser:v0.2.0-beta.1 # x-releaser-pleaser-version args: - run - --forge=github From 04748a710f2e34221029bb0500c44fc008d1b8f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sat, 24 Aug 2024 15:26:54 +0200 Subject: [PATCH 5/9] fix(ci): ko pipeline permissions (#23) --- .github/workflows/release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2c87858..8e08b7a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,6 +5,10 @@ on: tags: - "v*.*.*" +permissions: + contents: read + packages: write + jobs: release: runs-on: ubuntu-latest From 0f8d3cca3c65aaed3d98957a3dffbda1f3addd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sat, 24 Aug 2024 15:27:27 +0200 Subject: [PATCH 6/9] chore(main): release v0.2.0-beta.2 (#22) Co-authored-by: releaser-pleaser <> --- CHANGELOG.md | 10 ++++++++++ action.yml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 242ee08..f3e7084 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [v0.2.0-beta.2](https://github.com/apricote/releaser-pleaser/releases/tag/v0.2.0-beta.2) +### Features + +- update version references in any files (#14) + +### Bug Fixes + +- **ci**: building release image fails (#21) +- **ci**: ko pipeline permissions (#23) + ## [v0.2.0-beta.1](https://github.com/apricote/releaser-pleaser/releases/tag/v0.2.0-beta.1) ### Features diff --git a/action.yml b/action.yml index e5adb50..a6f1c21 100644 --- a/action.yml +++ b/action.yml @@ -19,7 +19,7 @@ inputs: outputs: {} runs: using: 'docker' - image: ghcr.io/apricote/releaser-pleaser:v0.2.0-beta.1 # x-releaser-pleaser-version + image: ghcr.io/apricote/releaser-pleaser:v0.2.0-beta.2 # x-releaser-pleaser-version args: - run - --forge=github From a841447063680c1ce9a200bf944aa4a5829068f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sat, 24 Aug 2024 15:39:55 +0200 Subject: [PATCH 7/9] fix(action): invalid quoting for extra-files arg (#25) --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a6f1c21..2033394 100644 --- a/action.yml +++ b/action.yml @@ -24,7 +24,7 @@ runs: - run - --forge=github - --branch=${{ inputs.branch }} - - --extra-files="${{ inputs.extra-files }}" + - --extra-files=${{ inputs.extra-files }} env: GITHUB_TOKEN: ${{ inputs.token }} GITHUB_USER: "oauth2" From 3e51dd84954ceacc6edaf921dbc7db8114ed5cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sat, 24 Aug 2024 15:44:28 +0200 Subject: [PATCH 8/9] chore: update version in action.yml (#26) --- .github/workflows/releaser-pleaser.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/releaser-pleaser.yaml b/.github/workflows/releaser-pleaser.yaml index e0ce818..7fb4b81 100644 --- a/.github/workflows/releaser-pleaser.yaml +++ b/.github/workflows/releaser-pleaser.yaml @@ -22,3 +22,5 @@ jobs: uses: ./ with: token: ${{ secrets.RELEASER_PLEASER_TOKEN }} + extra-files: | + action.yml From a67b5102844384e452d2a0f3fd5a5da6cb43c269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sat, 24 Aug 2024 16:23:42 +0200 Subject: [PATCH 9/9] docs: setup mdbook (#27) --- .github/workflows/docs.yaml | 40 ++++++++++++++++++++++ docs/.gitignore | 1 + docs/SUMMARY.md | 28 +++++++++++++++ docs/book.toml | 8 +++++ docs/changelog.md | 3 ++ docs/explanation/release-pr.md | 1 + docs/guides/github-workflow-permissions.md | 1 + docs/guides/pre-releases.md | 1 + docs/guides/release-notes.md | 1 + docs/introduction.md | 3 ++ docs/reference/github-action.md | 1 + docs/reference/pr-options.md | 1 + docs/tutorials/github.md | 1 + 13 files changed, 90 insertions(+) create mode 100644 .github/workflows/docs.yaml create mode 100644 docs/.gitignore create mode 100644 docs/SUMMARY.md create mode 100644 docs/book.toml create mode 100644 docs/changelog.md create mode 100644 docs/explanation/release-pr.md create mode 100644 docs/guides/github-workflow-permissions.md create mode 100644 docs/guides/pre-releases.md create mode 100644 docs/guides/release-notes.md create mode 100644 docs/introduction.md create mode 100644 docs/reference/github-action.md create mode 100644 docs/reference/pr-options.md create mode 100644 docs/tutorials/github.md diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 0000000..b61d5c9 --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,40 @@ +name: docs +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write # To push a branch + pages: write # To push to a GitHub Pages site + id-token: write # To update the deployment status + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install latest mdbook + run: | + tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name') + url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz" + mkdir mdbook + curl -sSL $url | tar -xz --directory=./mdbook + echo `pwd`/mdbook >> $GITHUB_PATH + - name: Build Book + run: | + # This assumes your book is in the root of your repository. + # Just add a `cd` here if you need to change to another directory. + cd docs + mdbook build + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: 'docs/book' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..7585238 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1 @@ +book diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md new file mode 100644 index 0000000..7214617 --- /dev/null +++ b/docs/SUMMARY.md @@ -0,0 +1,28 @@ +# Summary + +[Introduction](introduction.md) + +# Tutorials + +- [Getting started on GitHub](tutorials/github.md) +- [Getting started on GitLab]() + +# Explanation + +- [Release Pull Request](explanation/release-pr.md) + +# Guides + +- [Customizing Release Notes](guides/release-notes.md) +- [Pre-releases](guides/pre-releases.md) +- [Workflow Permissions on GitHub](guides/github-workflow-permissions.md) + +# Reference + +- [Pull Request Options](reference/pr-options.md) +- [GitHub Action](reference/github-action.md) +- [GitLab CI]() + +--- + +[Changelog](changelog.md) diff --git a/docs/book.toml b/docs/book.toml new file mode 100644 index 0000000..c109a67 --- /dev/null +++ b/docs/book.toml @@ -0,0 +1,8 @@ +[book] +language = "en" +multilingual = false +src = "." +title = "releaser-pleaser" + +[build] +build-dir = "book" diff --git a/docs/changelog.md b/docs/changelog.md new file mode 100644 index 0000000..ff8ce10 --- /dev/null +++ b/docs/changelog.md @@ -0,0 +1,3 @@ +# Changelog + +{{#include ../CHANGELOG.md:2: }} diff --git a/docs/explanation/release-pr.md b/docs/explanation/release-pr.md new file mode 100644 index 0000000..f043db4 --- /dev/null +++ b/docs/explanation/release-pr.md @@ -0,0 +1 @@ +# Release Pull Request diff --git a/docs/guides/github-workflow-permissions.md b/docs/guides/github-workflow-permissions.md new file mode 100644 index 0000000..45b87fb --- /dev/null +++ b/docs/guides/github-workflow-permissions.md @@ -0,0 +1 @@ +# Workflow Permissions on GitHub diff --git a/docs/guides/pre-releases.md b/docs/guides/pre-releases.md new file mode 100644 index 0000000..fd2bbf8 --- /dev/null +++ b/docs/guides/pre-releases.md @@ -0,0 +1 @@ +# Pre-releases diff --git a/docs/guides/release-notes.md b/docs/guides/release-notes.md new file mode 100644 index 0000000..ed1d1e2 --- /dev/null +++ b/docs/guides/release-notes.md @@ -0,0 +1 @@ +# Customizing Release Notes diff --git a/docs/introduction.md b/docs/introduction.md new file mode 100644 index 0000000..04ec94d --- /dev/null +++ b/docs/introduction.md @@ -0,0 +1,3 @@ +# Introduction + +{{#include ../README.md:2:}} diff --git a/docs/reference/github-action.md b/docs/reference/github-action.md new file mode 100644 index 0000000..2bc8ce9 --- /dev/null +++ b/docs/reference/github-action.md @@ -0,0 +1 @@ +# GitHub Action diff --git a/docs/reference/pr-options.md b/docs/reference/pr-options.md new file mode 100644 index 0000000..6b6ba14 --- /dev/null +++ b/docs/reference/pr-options.md @@ -0,0 +1 @@ +# Pull Request Options diff --git a/docs/tutorials/github.md b/docs/tutorials/github.md new file mode 100644 index 0000000..c27f953 --- /dev/null +++ b/docs/tutorials/github.md @@ -0,0 +1 @@ +# GitHub