forked from flatpak/flatpak.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 696 Bytes
/
deploy.yml
File metadata and controls
29 lines (24 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "Build and deploy"
on:
push:
branches:
- source
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo $GITHUB_TOKEN | docker login --username $GITHUB_ACTOR --password-stdin docker.pkg.github.com
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v1
- name: Build
uses: ./.github/actions/middleman-build
- name: Deploy
run: |
mkdir -p ~/.ssh
ssh-keyscan webapps.flathub.org >> ~/.ssh/known_hosts
eval "$(ssh-agent -s)"
ssh-add - <<< "${DEPLOY_KEY}"
rsync -rP --delete build/ deploy@webapps.flathub.org:
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}