Skip to content

Commit

Permalink
feat: test release please
Browse files Browse the repository at this point in the history
  • Loading branch information
ccatterina committed Dec 9, 2023
1 parent a7e0b3b commit 32de68e
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
".": "0.4.0",
"extra-files": [
{
"type": "json",
"path": "src/metadata.json",
"jsonpath": "$.KPlugin.Version"
}
]
}
17 changes: 17 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -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"
}
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.4.0

0 comments on commit 32de68e

Please sign in to comment.