Auction-House/.github/workflows/maven.yml

54 lines
1.3 KiB
YAML
Raw Normal View History

2021-02-26 22:45:50 +01:00
name: Auction House Build
on:
push:
2021-02-27 22:00:22 +01:00
paths:
- 'src/**'
- 'pom.xml'
- '.github/workflows/maven.yml'
2021-02-26 22:45:50 +01:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2021-02-27 22:00:22 +01:00
- name: Checkout the repository
uses: actions/checkout@v2
2021-02-27 00:15:21 +01:00
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
2021-02-27 22:00:22 +01:00
java-package: jdk
2021-02-27 00:15:21 +01:00
java-version: 1.8
2021-02-27 22:00:22 +01:00
- name: Cache Maven Packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
2021-02-27 00:15:21 +01:00
- name: Build with Maven
2021-02-27 22:00:22 +01:00
run: mvn verify -B --file pom.xml
2021-02-26 23:00:22 +01:00
2021-02-27 00:15:21 +01:00
transfer:
needs: build
runs-on: ubuntu-latest
steps:
2021-02-26 23:00:22 +01:00
- name: Transfer main branch to Tweetzy
2021-02-26 23:36:32 +01:00
uses: andstor/copycat-action@v3
2021-02-26 23:00:22 +01:00
with:
2021-02-26 23:36:32 +01:00
personal_token: ${{ secrets.API_TOKEN_GITHUB }}
src_path: /.
dst_owner: Tweetzy
dst_repo_name: Auction-House
email: kiran.hart@live.com
src_branch: main
2021-02-27 00:02:26 +01:00
dst_branch: main
2021-02-26 23:47:57 +01:00
commit_message: ${{ github.event.head_commit.message }}
2021-02-27 22:00:22 +01:00
exclude: .github/*
2021-03-15 05:02:00 +01:00
clean: true
2021-02-27 22:00:22 +01:00
jitpack:
runs-on: ubuntu-latest
steps:
- uses: badasintended/autojitpack@v0