-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (38 loc) · 1.36 KB
/
release-edc-build-plugin.yml
File metadata and controls
42 lines (38 loc) · 1.36 KB
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
41
42
name: Release edc-build plugin
on:
workflow_dispatch:
inputs:
version:
required: true
description: version to be released
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: eclipse-edc/.github/.github/actions/setup-build@main
- uses: eclipse-edc/.github/.github/actions/import-gpg-key@main
with:
gpg-private-key: ${{ secrets.ORG_GPG_PRIVATE_KEY }}
- run: |
./gradlew -Pversion=${{ inputs.version }} \
-Psigning.gnupg.executable=gpg \
-Psigning.gnupg.passphrase="${{ secrets.ORG_GPG_PASSPHRASE }}" \
:plugins:edc-build:publishPlugins
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
tag: edc-build-v${{ inputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
removeArtifacts: true
makeLatest: true
- uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_GITHUB_CI_WEBHOOK }}
title: "Release edc-build-v${{ inputs.version }} plugin"
username: GitHub Actions