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:00:22 +01:00
|
|
|
uses: cpina/github-action-push-to-another-repository@cp_instead_of_deleting
|
|
|
|
with:
|
|
|
|
source-directory: 'output'
|
|
|
|
destination-github-username: 'Tweetzy'
|
|
|
|
destination-repository-name: 'Auction-House'
|
|
|
|
user-email: 'kiran.hart@live.com'
|
|
|
|
commit-message: See ORIGIN_COMMIT
|