Skip to content

Commit

Permalink
Don't release IT projects (#249)
Browse files Browse the repository at this point in the history
* Don't release IT projects

* Fix inverted workflow names

* Fix profiles

---------

Co-authored-by: George Gastaldi <[email protected]>
  • Loading branch information
brunobat and gastaldi authored Nov 6, 2024
1 parent 0a01b41 commit 4170aa7
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 32 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/release-perform.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
name: Quarkiverse Prepare Release

name: Quarkiverse Perform Release
run-name: Perform ${{github.event.inputs.tag || github.ref_name}} Release
on:
pull_request:
types: [ closed ]
paths:
- '.github/project.yml'
push:
tags:
- '*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to release'
required: true

permissions:
attestations: write
id-token: write
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
prepare-release:
name: Prepare Release
if: ${{ github.event.pull_request.merged == true}}
uses: quarkiverse/.github/.github/workflows/prepare-release.yml@main
perform-release:
name: Perform Release
uses: quarkiverse/.github/.github/workflows/perform-release.yml@main
secrets: inherit
with:
version: ${{github.event.inputs.tag || github.ref_name}}
30 changes: 10 additions & 20 deletions .github/workflows/release-prepare.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
name: Quarkiverse Perform Release
run-name: Perform ${{github.event.inputs.tag || github.ref_name}} Release
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to release'
required: true
name: Quarkiverse Prepare Release

permissions:
attestations: write
id-token: write
contents: read
on:
pull_request:
types: [ closed ]
paths:
- '.github/project.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
perform-release:
name: Perform Release
uses: quarkiverse/.github/.github/workflows/perform-release.yml@main
prepare-release:
name: Prepare Release
if: ${{ github.event.pull_request.merged == true}}
uses: quarkiverse/.github/.github/workflows/prepare-release.yml@main
secrets: inherit
with:
version: ${{github.event.inputs.tag || github.ref_name}}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>docs</id>
Expand Down
16 changes: 15 additions & 1 deletion quarkus-opentelemetry-exporter-azure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,21 @@
<modules>
<module>runtime</module>
<module>deployment</module>
<module>integration-tests</module>
</modules>

<profiles>
<profile>
<id>it</id>
<activation>
<property>
<name>performRelease</name>
<value>!true</value>
</property>
</activation>
<modules>
<module>integration-tests</module>
</modules>
</profile>
</profiles>

</project>
1 change: 0 additions & 1 deletion quarkus-opentelemetry-exporter-gcp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<modules>
<module>runtime</module>
<module>deployment</module>
<module>integration-tests</module>
</modules>

<profiles>
Expand Down

0 comments on commit 4170aa7

Please sign in to comment.