Skip to content

Commit

Permalink
Set to release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
santanusinha committed Aug 16, 2024
1 parent f3ea23f commit 02c56b1
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/release-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

# on:
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]

on: workflow_dispatch
# push:
# # Pattern matched against refs/tags
# tags:
# - '*' # Push events to every tag not containing /
on:
push:
# Pattern matched against refs/tags
tags:
- '*' # Push events to every tag not containing /

jobs:

Expand All @@ -34,8 +28,10 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package

env:
USER_NAME: ${{ secrets.PPE_USER_NAME }}
ACCESS_TOKEN: ${{ secrets.PPE_ACCESS_TOKEN }}
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml -B package

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand Down

0 comments on commit 02c56b1

Please sign in to comment.