Skip to content

Commit

Permalink
Create actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy0006 authored Jul 16, 2024
1 parent 6f31135 commit e9c271c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ "actions" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: copy file via ssh password
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.DEV_USER }}
password: ${{ secrets.SSH_PASSWORD }}
key: ${{ secrets.DEV_KEY }}
port: ${{ secrets.SSH_PORT }}
source: "./build/libs/*.jar"
target: /home/ubuntu/palkiabuilds/

0 comments on commit e9c271c

Please sign in to comment.