From b8c000a6a7d23745c9fed5571cb6ee6aef63a67e Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 6 Sep 2024 13:55:30 -0700 Subject: [PATCH] Init test workflow --- .gitea/workflows/hello-world.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/hello-world.yaml diff --git a/.gitea/workflows/hello-world.yaml b/.gitea/workflows/hello-world.yaml new file mode 100644 index 00000000..0ba79e92 --- /dev/null +++ b/.gitea/workflows/hello-world.yaml @@ -0,0 +1,20 @@ +name: SSH and echo to file + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + ssh: + runs-on: ubuntu-latest + steps: + - name: SSH into host + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.HOST_DOMAIN }} + username: ${{ secrets.HOST_USERNAME }} + password: ${{ secrets.HOST_PASSWORD }} + script: | + echo "Hello, world!" >> ~/hello.txt