Skip to content

Commit 2233c27

Browse files
Update and rename deploy.yml to build.yml
1 parent b7b387d commit 2233c27

File tree

2 files changed

+42
-38
lines changed

2 files changed

+42
-38
lines changed

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 }}

.github/workflows/deploy.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)