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

Commit

Permalink
Introduce a deploy workflow that copies binary from deploy to server
Browse files Browse the repository at this point in the history
  • Loading branch information
berkes committed Aug 4, 2022
1 parent a9e2c0f commit 69600b2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: CI

on:
release:
types: ["published"]

jobs:
hunter2:
runs-on: ubuntu-latest

steps:
- name: Download binary hunter2
uses: charlieegan3/fetch-gh-release-binary@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
owner: Flockingbird
repo: hunter2
asset-pattern: hunter2
install-path: /tmp/hunter2
verbose: true

- name: Upload hunter2
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: /tmp/hunter2
remote_path: /tmp/hunter2
remote_host: cool-arnberger.webschuur.com
remote_user: deploy
remote_key: ${{ secrets.DEPLOY_KEY }}

0 comments on commit 69600b2

Please sign in to comment.