Skip to content

Commit

Permalink
Merge pull request #39 from ccatterina/automate-release
Browse files Browse the repository at this point in the history
ci: automate changelog and package creation
  • Loading branch information
ccatterina authored Dec 9, 2023
2 parents a7e0b3b + 57b565c commit e13c0ed
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- main

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 }}

- name: Generate plasmoid package
if: ${{ steps.release.outputs.release_created }}
run: |
cd ./src
zip -r ../plasmusic-toolbar-${{steps.release.outputs.tag_name}}.plasmoid .
- name: Upload plasmoid package to release
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ./plasmusic-toolbar-${{steps.release.outputs.tag_name}}.plasmoid
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.4.0"
}
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"
}

0 comments on commit e13c0ed

Please sign in to comment.