-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 937 Bytes
/
deployment.yml
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
30
31
32
33
34
35
36
---
name: Upload port page
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Download code
uses: actions/checkout@v4
- name: Download Crux utils
uses: joutvhu/download-s3@v1
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: eu-north-1
aws_bucket: cruxfiles
source: ''
target: 'utils'
- name: Adjust permissions
run: |
chmod u+x $PWD/utils/*
- name: Download SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: Refresh and upload ports repo
run: |
PATH=$PATH:$PWD/utils ./port-sync.sh