From 32de68e14939e8d46691c058a667053fc79109fe Mon Sep 17 00:00:00 2001 From: Claudio Catterina Date: Sat, 9 Dec 2023 15:22:01 +0100 Subject: [PATCH] feat: test release please --- .github/workflows/release-please.yml | 39 ++++++++++++++++++++++++++++ .release-please-manifest.json | 10 +++++++ release-please-config.json | 17 ++++++++++++ version.txt | 1 + 4 files changed, 67 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json create mode 100644 version.txt diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..a0c7a2e --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,39 @@ +on: + push: + branches: + - test-release-please + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: google-github-actions/release-please-action@v4 + id: release + with: + token: ${{ secrets.TOKEN_RELEASE_PLEASE }} + target-branch: test-release-please + + - name: Generate plasmoid package + if: ${{ steps.release.outputs.release_created }} + run: | + cd ./src + zip -r ../plasmusic-toolbar-${{steps.release.outputs.tag_name}}.plasmoid . + + - uses: actions/upload-artifact@v3 + if: ${{ steps.release.outputs.release_created }} + with: + name: plasmusic-toolbar-${{steps.release.outputs.tag_name}}.plasmoid + path: plasmusic-toolbar-${{steps.release.outputs.tag_name}}.plasmoid + + - name: Upload Release Artifact + if: ${{ steps.release.outputs.release_created }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release upload ${{ steps.release.outputs.tag_name }} ./artifact/plasmusic-toolbar-${{steps.release.outputs.tag_name}}.plasmoid \ No newline at end of file diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..a6aee89 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,10 @@ +{ + ".": "0.4.0", + "extra-files": [ + { + "type": "json", + "path": "src/metadata.json", + "jsonpath": "$.KPlugin.Version" + } + ] +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..202e8db --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,17 @@ + +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "simple", + "extra-files": [ + { + "type": "json", + "path": "src/metadata.json", + "jsonpath": "$.KPlugin.Version" + } + ] + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} \ No newline at end of file diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..60a2d3e --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +0.4.0 \ No newline at end of file