Skip to content

Commit

Permalink
update .github/workflows/action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Jun 14, 2024
1 parent 3c9faab commit b455937
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
name: 🐥 ssh-action-deploy
on: [push]
name: Visualizar IP da VPS

on:
workflow_dispatch: # Aciona manualmente ou ajusta para on: [push] para disparar com push

jobs:
build:
name: 🕳️ Ubuntu...
check-ip:
runs-on: ubuntu-latest
steps:
- name: 💞 Checkout do GitHub...
uses: actions/checkout@v3

- name: 📝 Exportar IP do servidor
- name: Exibir IP da VPS
run: |
set -x
echo "O IP do servidor é ${{ secrets.IP }}"

- name: 🌈 Deploy com SSH...
uses: ./
with:
IP: ${{ secrets.IP }} # Ainda usando o segredo diretamente para a ação
USER: ${{ secrets.USER }}
KEY: ${{ secrets.KEY }}
FOLDER: "/root/.deploy"
RUN: "ls"
echo "IP da VPS: ${{ secrets.IP }}" > ip.txt
cat ip.txt

0 comments on commit b455937

Please sign in to comment.