Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 69600b2

Browse files
committed
Introduce a deploy workflow that copies binary from deploy to server
1 parent a9e2c0f commit 69600b2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: CI
3+
4+
on:
5+
release:
6+
types: ["published"]
7+
8+
jobs:
9+
hunter2:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Download binary hunter2
14+
uses: charlieegan3/fetch-gh-release-binary@main
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
owner: Flockingbird
19+
repo: hunter2
20+
asset-pattern: hunter2
21+
install-path: /tmp/hunter2
22+
verbose: true
23+
24+
- name: Upload hunter2
25+
uses: burnett01/rsync-deployments@5.2.1
26+
with:
27+
switches: -avzr --delete
28+
path: /tmp/hunter2
29+
remote_path: /tmp/hunter2
30+
remote_host: cool-arnberger.webschuur.com
31+
remote_user: deploy
32+
remote_key: ${{ secrets.DEPLOY_KEY }}

0 commit comments

Comments
 (0)