From 28aa37984e13e38d89c422f9b7a595cea343f60b Mon Sep 17 00:00:00 2001 From: Lalu Erfandi Maula Yusnu Date: Thu, 21 Mar 2024 02:43:10 +0800 Subject: [PATCH 1/3] feat: add core, testimony and resources --- core/code-of-conduct.md | 4 ++++ core/introduction.md | 1 + core/readme.md | 7 +------ guidelines/collaboration/readme.md | 7 +------ guidelines/sharing/readme.md | 7 +------ resources/readme.md | 1 + testimony/readme.md | 1 + 7 files changed, 10 insertions(+), 18 deletions(-) create mode 100644 core/code-of-conduct.md create mode 100644 core/introduction.md create mode 100644 resources/readme.md create mode 100644 testimony/readme.md diff --git a/core/code-of-conduct.md b/core/code-of-conduct.md new file mode 100644 index 0000000..387fd03 --- /dev/null +++ b/core/code-of-conduct.md @@ -0,0 +1,4 @@ +# Code of Conduct + + +sadf diff --git a/core/introduction.md b/core/introduction.md new file mode 100644 index 0000000..e10b99d --- /dev/null +++ b/core/introduction.md @@ -0,0 +1 @@ +# Introduction diff --git a/core/readme.md b/core/readme.md index 054a0fb..65c569b 100644 --- a/core/readme.md +++ b/core/readme.md @@ -1,6 +1 @@ ---- -noteId: "d3c311e0e6e511ee972edf2431f1c3fd" -tags: [] - ---- - +# Core Community Values and Assets diff --git a/guidelines/collaboration/readme.md b/guidelines/collaboration/readme.md index cf19ff1..1f9a2c5 100644 --- a/guidelines/collaboration/readme.md +++ b/guidelines/collaboration/readme.md @@ -1,6 +1 @@ ---- -noteId: "eb819700e6e211ee972edf2431f1c3fd" -tags: [] - ---- - +# Collaboration Guidelines \ No newline at end of file diff --git a/guidelines/sharing/readme.md b/guidelines/sharing/readme.md index 5a1de5a..a41c99a 100644 --- a/guidelines/sharing/readme.md +++ b/guidelines/sharing/readme.md @@ -1,6 +1 @@ ---- -noteId: "eb819701e6e211ee972edf2431f1c3fd" -tags: [] - ---- - +# Sharing Guidelines \ No newline at end of file diff --git a/resources/readme.md b/resources/readme.md new file mode 100644 index 0000000..54fed86 --- /dev/null +++ b/resources/readme.md @@ -0,0 +1 @@ +# Resources \ No newline at end of file diff --git a/testimony/readme.md b/testimony/readme.md new file mode 100644 index 0000000..b1b0a28 --- /dev/null +++ b/testimony/readme.md @@ -0,0 +1 @@ +# Success Story Of Lombok Dev Member From 064f8c3b47554398f827e2ed4a68ed745f0c82c0 Mon Sep 17 00:00:00 2001 From: Lalu Erfandi Maula Yusnu Date: Thu, 21 Mar 2024 03:14:21 +0800 Subject: [PATCH 2/3] feat: add release to main branch workflows --- .github/workflows/main.yaml | 41 ++++++++++++++++++++++++++++++++++ .github/workflows/readme.md | 0 .github/workflows/release.yaml | 20 +++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 .github/workflows/main.yaml delete mode 100644 .github/workflows/readme.md create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..a1382ef --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,41 @@ +name: "On Merge to main branch: release new version" + +concurrency: + group: main-release-${{ github.ref }} + cancel-in-progress: true + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Get Latest Tag + id: latest-tag + run: echo "tag=$(git tag -l | sort -V | tail -1 | sed 's/-dev$//')" >> "$GITHUB_OUTPUT" + + - name: Generate New Bumped Version + uses: actions-ecosystem/action-bump-semver@v1 + id: bump-semver + with: + current_version: ${{ steps.latest-tag.outputs.tag }} + level: minor + + - name: Create Release Notes + id: create-release + run: | + curl -f -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/${{ github.repository }}/releases \ + -d '{"tag_name":"${{ steps.bump-semver.outputs.new_version }}", "generate_release_notes":true}' \ No newline at end of file diff --git a/.github/workflows/readme.md b/.github/workflows/readme.md deleted file mode 100644 index e69de29..0000000 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..294b520 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,20 @@ +name: "On Merge to release branch: compile and publish" + +concurrency: + group: release-${{ github.ref }} + cancel-in-progress: true + +on: + workflow_dispatch: + push: + branches: + - release + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 \ No newline at end of file From 80d0cb6dc17590d77586091ea1512588c637ebf8 Mon Sep 17 00:00:00 2001 From: Lalu Erfandi Maula Yusnu Date: Thu, 21 Mar 2024 03:25:19 +0800 Subject: [PATCH 3/3] fix: change minor release to patch release for docs --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a1382ef..868d739 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -28,7 +28,7 @@ jobs: id: bump-semver with: current_version: ${{ steps.latest-tag.outputs.tag }} - level: minor + level: patch - name: Create Release Notes id: create-release