-
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 1.12 KB
/
release-please.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
- name: Extract project name
if: ${{ steps.release.outputs.release_created }}
run: |
PROJECT_NAME=$(grep -Po '(?<=project\().*(?=\))' CMakeLists.txt)
echo "PROJECT_NAME=$PROJECT_NAME" >> $GITHUB_ENV
- name: Generate plasmoid package
if: ${{ steps.release.outputs.release_created }}
run: |
cd ./package
zip -r ../${{ env.PROJECT_NAME }}-${{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 }} ./${{ env.PROJECT_NAME }}-${{steps.release.outputs.tag_name}}.plasmoid