Skip to content

Commit

Permalink
avoid powershell when working with Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Mar 7, 2022
1 parent 6efe381 commit 91670ec
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Build
on:
[push]

defaults:
run:
shell: bash

jobs:
build:
name: Build and Test
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
schedule:
- cron: '0 8 * * 0'

defaults:
run:
shell: bash

jobs:
analyse:
name: Analyse
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/publish-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
description: 'Tag'
required: true
default: '0.0.0'

defaults:
run:
shell: bash

jobs:
publish:
runs-on: windows-latest
Expand All @@ -26,7 +31,7 @@ jobs:
- name: Enforce project version ${{ github.event.inputs.tag }}
run: mvn versions:set -B -DnewVersion="${{ github.event.inputs.tag }}"
- name: Deploy
run: mvn deploy -B -DskipTests -Psign -Pdeploy-central --no-transfer-progress
run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
env:
MAVEN_OPTS: >
--add-opens=java.base/java.util=ALL-UNNAMED
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Publish to GitHub Packages
on:
release:
types: [published]

defaults:
run:
shell: bash

jobs:
publish:
runs-on: windows-latest
Expand All @@ -18,7 +23,7 @@ jobs:
- name: Enforce project version ${{ github.event.release.tag_name }}
run: mvn versions:set -B -DnewVersion="${{ github.event.release.tag_name }}"
- name: Deploy
run: mvn deploy -B -DskipTests -Psign -Pdeploy-github --no-transfer-progress
run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}

0 comments on commit 91670ec

Please sign in to comment.