minecraft-helper/.gitea/workflows/ci.yml

34 lines
735 B
YAML
Raw Normal View History

2024-04-08 22:40:47 +00:00
name: "ci"
2024-04-06 04:55:48 +00:00
on:
push:
branches:
- master
jobs:
deploy:
2024-04-09 02:41:06 +00:00
runs-on: ubuntu-latest
2024-04-06 04:55:48 +00:00
steps:
- name: Cloning repo
uses: actions/checkout@v4
2024-04-08 06:30:02 +00:00
- name: Set up JDK 17 and Maven
2024-04-10 07:20:23 +00:00
uses: s4u/setup-maven-action@v1.12.0
2024-04-08 06:20:25 +00:00
with:
java-version: '17'
2024-04-10 07:20:23 +00:00
distribution: 'zulu'
2024-04-08 06:30:02 +00:00
maven-version: 3.8.5
2024-04-08 06:20:25 +00:00
- name: Run Tests
2024-04-08 06:33:14 +00:00
run: mvn --batch-mode test -q
2024-04-08 06:20:25 +00:00
2024-04-08 19:01:06 +00:00
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0
2024-04-06 04:55:48 +00:00
- name: Push to dokku
uses: dokku/github-action@master
with:
2024-04-06 18:33:29 +00:00
git_remote_url: "ssh://dokku@10.0.50.137:22/minecraft-helper"
2024-04-06 04:55:48 +00:00
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}