Skip to content

Commit

Permalink
prepare release (distribution to local directory)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Sep 15, 2023
1 parent 42ca782 commit d9079f4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-from-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release from Tag

on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
<core.wcm.components.version>2.23.2</core.wcm.components.version>
<wknd-shared.version>3.1.0</wknd-shared.version>
<wknd-shared.65.version>2.2.2</wknd-shared.65.version>

<!-- deploy to local target directory -->
<distribution.snapshotRepositoryId>local-directory</distribution.snapshotRepositoryId>
<distribution.snapshotRepositoryUrl>file:///temp/deploy-snapshot</distribution.snapshotRepositoryUrl>
<distribution.releaseRepositoryId>local-directory</distribution.releaseRepositoryId>
<distribution.releaseRepositoryUrl>file:///temp/deploy-release</distribution.releaseRepositoryUrl>
</properties>

<organization>
Expand Down Expand Up @@ -174,6 +180,20 @@
<unpackDirectory>src/main/content</unpackDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<projectVersionPolicyId>OddEvenVersionPolicy</projectVersionPolicyId>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.release</groupId>
<artifactId>maven-release-oddeven-policy</artifactId>
<version>${maven-release-plugin.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit d9079f4

Please sign in to comment.