Skip to content

Commit 12d20d2

Browse files
authored
Update demo.yaml
1 parent 1082dfa commit 12d20d2

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/demo.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: demo
2-
on: workflow_dispatch # helps to trigger manually on github actions page
2+
on:
3+
- workflow_dispatch # helps to trigger manually on github actions page
4+
- push
35
jobs:
46
sampleapp-build:
57
runs-on: ubuntu-latest
@@ -14,6 +16,20 @@ jobs:
1416
# run: mvn test
1517
# - name: verify
1618
# 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
1733
- name: deploy
1834
run: |
1935
mvn deploy

0 commit comments

Comments
 (0)