OIDF Publish #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |