We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1082dfa commit 12d20d2Copy full SHA for 12d20d2
.github/workflows/demo.yaml
@@ -1,5 +1,7 @@
1
name: demo
2
-on: workflow_dispatch # helps to trigger manually on github actions page
+on:
3
+ - workflow_dispatch # helps to trigger manually on github actions page
4
+ - push
5
jobs:
6
sampleapp-build:
7
runs-on: ubuntu-latest
@@ -14,6 +16,20 @@ jobs:
14
16
# run: mvn test
15
17
# - name: verify
18
# run: mvn verify
19
+ - name: Configure Maven Settings
20
+ run: |
21
+ mkdir -p ~/.m2
22
+ cat > ~/.m2/settings.xml <<EOF
23
+ <settings>
24
+ <servers>
25
+ <server>
26
+ <id>github</id>
27
+ <username>\${env.GITHUB_ACTOR}</username>
28
+ <password>\${env.GITHUB_TOKEN}</password>
29
+ </server>
30
+ </servers>
31
+ </settings>
32
+ EOF
33
- name: deploy
34
run: |
35
mvn deploy
0 commit comments