update .github/workflows/action.yml #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🐥 ssh-action-deploy | |
on: [push] | |
jobs: | |
build: | |
name: 🕳️ Ubuntu... | |
runs-on: ubuntu-latest | |
steps: | |
- name: 💞 Checkout do GitHub... | |
uses: actions/checkout@v3 | |
- name: 📝 Exportar IP do servidor | |
run: | | |
export IP_VALUE="${{ secrets.IP }}" | |
echo "O IP do servidor é $IP_VALUE" | |
- 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" |