File tree Expand file tree Collapse file tree 2 files changed +42
-38
lines changed Expand file tree Collapse file tree 2 files changed +42
-38
lines changed Original file line number Diff line number Diff line change
1
+ name : Bygg
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ paths-ignore :
8
+ - ' **.md'
9
+ - ' **.MD'
10
+ - ' .gitignore'
11
+ - ' LICENCE'
12
+ - ' CODEOWNERS'
13
+
14
+ jobs :
15
+ build :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - uses : actions/setup-java@v1
20
+ with :
21
+ java-version : ' 11.x'
22
+ - name : Set cache key
23
+ run : |
24
+ echo "CACHE_KEY=$(expr $(date +%V) - 1 + 1)" >> $GITHUB_ENV
25
+ echo "TIMESTAMP=$(expr $(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV
26
+ - uses : actions/cache@v2
27
+ with :
28
+ path : ~/.m2
29
+ key : ${{ runner.os }}-maven-${{ env.CACHE_KEY }}
30
+
31
+ - name : Build & Deploy
32
+ run : |
33
+ mvn verify -e --batch-mode --file pom.xml -DtrimStackTrace=false
34
+ env :
35
+ GITHUB_USERNAME : x-access-token
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+
38
+ - name : Release Drafter
39
+ uses : release-drafter/release-drafter@v5
40
+ if : success()
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments