Skip to content

Commit

Permalink
run on main
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsromero committed Jan 21, 2024
1 parent a30a0a6 commit dbe86cb
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Release

on: workflow_dispatch
#on: workflow_dispatch
on:
push:
branches:
- main
permissions:
contents: write

Expand Down Expand Up @@ -44,17 +48,18 @@ jobs:
git config user.name "GitHub Actions"
- name: Configure GPG key
run: echo -e "${{ env.GPG_PRIVATE_KEY }}" | gpg --import --batch
- name: Test git
run: |
timestamp=$(date +"%Y%m%d-%H%M")
echo $timestamp > "report-${timestamp}.txt"
git add .
git commit -am "Automated report"
git push
## Works fine and can commit file
# - name: Test git
# run: |
# timestamp=$(date +"%Y%m%d-%H%M")
# echo $timestamp > "report-${timestamp}.txt"
# git add .
# git commit -am "Automated report"
# git push
- name: Build artifacts
run: mvn -B clean verify -Prelease -Dmaven.test.skip
run: mvn clean verify -B -Prelease -Dmaven.test.skip
- name: Publish artifacts
run: mvn -B release:prepare release:perform -Darguments="-Prelease -Dmaven.test.skip"
run: mvn release:prepare release:perform -B -Darguments="-Prelease -Dmaven.test.skip"
- name: Close release
run: |
echo "Release completed 🎉"
Expand Down

0 comments on commit dbe86cb

Please sign in to comment.