Skip to content

Commit

Permalink
Add tasks to set up SSH agent and publish installation
Browse files Browse the repository at this point in the history
  • Loading branch information
p3k committed May 18, 2024
1 parent db4dfd0 commit 61c4440
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Deploy to Antville.org development environment
name: Deploy to development environment

on:
workflow_dispatch

env:
SSH_AUTH_SOCK: /tmp/ssh-agent.sock

jobs:
build:
install:
runs-on: ubuntu-latest

environment:
Expand All @@ -25,3 +28,20 @@ jobs:

- name: Build with Gradle
run: ./gradlew installDist

- name: Set up SSH agent
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
mkdir -p ~/.ssh
echo '${{ vars.SSH_CONFIG }}' > ~/.ssh/config
echo '${{ vars.KNOWN_HOSTS }}' > ~/.ssh/known_hosts
- name: Publish to staging environment
run: |
rsync build/install/helma/ antville.dev:/ \
--verbose --archive --delete --compress \
--filter '+ launcher.jar' \
--filter '+ lib' \
--filter '+ *.jar' \
--filter '- *' \

0 comments on commit 61c4440

Please sign in to comment.