Skip to content

Commit

Permalink
Merge pull request #8 from liquibase/test-workflow
Browse files Browse the repository at this point in the history
Test workflow
  • Loading branch information
jandroav authored Sep 12, 2023
2 parents fb0da96 + 3381583 commit d8e7110
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Extension to Sonatype
name: Release Super POM to GitHub Packages

on:
workflow_dispatch:
Expand Down Expand Up @@ -48,12 +48,8 @@ jobs:

- name: Publish to GitHub Packages
run: |
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
mvn -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
-Durl=https://maven.pkg.github.com/liquibase/liquibase-super-pom \
-DpomFile=${{ env.artifact_id }}-${version}.pom \
-DgeneratePom=true \
-Dfile=${{ env.artifact_id }}-${version}.pom \
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
mvn deploy:deploy-file -Dusername=liquibot -Dpassword=$GITHUB_TOKEN -DpomFile=${{ env.artifact_id }}-${version}.pom -Dfile=${{ env.artifact_id }}-${version}.pom -DrepositoryId=github -Durl=https://maven.pkg.github.com/liquibase/liquibase-super-pom
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@
</snapshotRepository>
</distributionManagement>

<repositories>
<repository>
<id>github</id>
<name>This repository</name>
<url>https://maven.pkg.github.com/liquibase/${project.artifactId}</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.liquibase</groupId>
Expand Down

0 comments on commit d8e7110

Please sign in to comment.