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

32 lines
768 B
YAML
Raw Normal View History

2021-02-26 22:45:50 +01:00
name: Auction House Build
on:
push:
2021-02-26 22:47:47 +01:00
branches: [ main ]
2021-02-26 22:45:50 +01:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn package
2021-02-26 23:00:22 +01:00
- name: Transfer main branch to Tweetzy
id: push_directory
2021-02-26 23:06:34 +01:00
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
2021-02-26 23:28:40 +01:00
uses: cpina/github-action-push-to-another-repository@master
2021-02-26 23:00:22 +01:00
with:
2021-02-26 23:28:40 +01:00
source-directory: '.'
2021-02-26 23:00:22 +01:00
destination-github-username: 'Tweetzy'
destination-repository-name: 'Auction-House'
user-email: 'kiran.hart@live.com'
commit-message: See ORIGIN_COMMIT