Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
thiago-cloud committed Dec 17, 2024
2 parents f3e2ade + 1ab3687 commit 68f5451
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ on:
push:
branches: [ "main" ]
jobs:
build:

print-token:
permissions: write-all
name: print-token
environment: dev
# needs: pre-pkr
runs-on: ubuntu-latest
#build:
# runs-on: ubuntu-latest

# steps são etapas
steps:
Expand All @@ -29,7 +34,17 @@ jobs:
run: mvn -B package --file pom.xml # -B package serve gerar um .jar
- name: Listing contents
run: ls -la ./target # Liste o que estar no diretório 1

- name: Copiando arquivos para maquina virtual
uses: appleboy/scp-action@master # Serve para mostrar informações quando for executado o deploy
with:
port: 22
host: listnest.local
username: root
password: $${{ secrets.PASSWORD }}# E necessário definir a senha no git hub action em secrets
source: "./target/listnest-0.0.1-SNAPSHOT"
target: "/home/thiago"
debug: true

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
Expand Down

0 comments on commit 68f5451

Please sign in to comment.