-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (64 loc) · 1.98 KB
/
oidf-publish.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: OIDF Publish
on:
pull_request_review:
types:
- submitted
workflow_dispatch:
jobs:
publish_to_specs:
name: OIDF-Publish
runs-on: ubuntu-latest
environment: openid.net/specs/
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout
uses: actions/checkout@v4
with:
repository: openid/publication-checks
path: publication-scripts
ssh-key: ${{ secrets.OPENID_PUBLICATION_DEPLOY_KEY }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Python requirements
run: |
cd ./publication-scripts
python -m pip install --upgrade pip
pip install -r requirements.txt
echo "::set-output name=path::$(which python)"
- name: OpenID publication prep
run : |
mkdir ./to-publish
ls -l ./publication-scripts
cd ./publication-scripts
chmod +x ./publish.sh
./publish.sh
cd ../to-publish
ls -l
- name: list remote /specs via ssh
uses: appleboy/[email protected]
with:
host: ${{ secrets.OIDF_SPECS_HOST }}
username: ${{ secrets.OIDF_USERID }}
key: ${{ secrets.OIDF_USERID_KEY }}
port: ${{ secrets.OIDF_SPECS_PORT }}
script: |
pwd
whoami
ls
ls /var/www/openid.net/htdocs/specs/
cd /var/www/openid.net/publication
git status
git pull
# - name: Copy OpenID publication to Web Server
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.OIDF_SPECS_HOST }}
# username: ${{ secrets.OIDF_USERID }}
# key: ${{ secrets.OIDF_USERID_KEY }}
# port: ${{ secrets.OIDF_SPECS_PORT }}
# source: "emptytest/test.txt"
# target: your_server_target_folder_path