Skip to content

Commit 61b026b

Browse files
RD: bump version for testing; include rsync for docs
1 parent 998f880 commit 61b026b

3 files changed

Lines changed: 41 additions & 18 deletions

File tree

.github/workflows/docs.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
name: Build docs
1+
name: Publish Docs
22

33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
7-
build_wheels:
10+
build_docs:
811
name: Build docs
912
runs-on: ubuntu-latest
1013

@@ -27,9 +30,8 @@ jobs:
2730
python -m pip install --upgrade pip
2831
pip install nox[pbs]
2932
30-
- name: Build wheels
31-
run: |
32-
nox -s build-3.13
33+
- name: Set nox conda backend
34+
run: echo "CONDA_EXE=micromamba" >> "$GITHUB_ENV"
3335

3436
- name: Repair wheels
3537
run: |
@@ -45,4 +47,28 @@ jobs:
4547
with:
4648
name: docs
4749
path: .nox/_artifacts/docs/html*/
48-
retention-days: 30
50+
retention-days: 7
51+
52+
- name: Prepare SSH
53+
env:
54+
SSH_HOST: ${{ secrets.DOCS_SSH_HOST }}
55+
SSH_PORT: ${{ secrets.DOCS_SSH_PORT }}
56+
run: |
57+
install -m 700 -d ~/.ssh
58+
install -m 600 /dev/null ~/.ssh/id_rsync
59+
printf '%s\n' "${{ secrets.DOCS_SSH_KEY }}" > ~/.ssh/id_rsync
60+
ssh-keyscan -p "${SSH_PORT:-22}" "${SSH_HOST}" >> ~/.ssh/known_hosts
61+
62+
- name: Rsync to server
63+
env:
64+
SSH_HOST: ${{ secrets.DOCS_SSH_HOST }}
65+
SSH_USER: ${{ secrets.DOCS_SSH_USER }}
66+
SSH_PORT: ${{ secrets.DOCS_SSH_PORT }}
67+
REMOTE_DIR: ${{ secrets.DOCS_SSH_PATH }}
68+
run: |
69+
# ensure target dir exists
70+
ssh -i ~/.ssh/id_rsync -p "${SSH_PORT:-22}" -o StrictHostKeyChecking=yes \
71+
"${SSH_USER}@${SSH_HOST}" "mkdir -p '${REMOTE_DIR}'"
72+
rsync -az \
73+
-e "ssh -i ~/.ssh/id_rsync -p ${SSH_PORT:-22} -o StrictHostKeyChecking=yes" \
74+
.nox/_artifacts/docs/html*/ "${SSH_USER}@${SSH_HOST}:${REMOTE_DIR}/"

.github/workflows/publish.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: CICD Pipeline
22

33
on:
44
workflow_dispatch:
5-
pull_request:
6-
push:
7-
tags: [ 'v*' ]
85

96
permissions:
107
actions: read
@@ -45,7 +42,7 @@ jobs:
4542
with:
4643
name: sdist
4744
path: .nox/_artifacts/sdist/*.tar.gz
48-
retention-days: 30
45+
retention-days: 7
4946

5047

5148
build_wheels:
@@ -58,9 +55,9 @@ jobs:
5855
matrix:
5956
os:
6057
- ubuntu-24.04
61-
- ubuntu-22.04-arm
62-
- macos-15-intel
63-
- macos-15
58+
# - ubuntu-22.04-arm
59+
# - macos-15-intel
60+
# - macos-15
6461
steps:
6562
- uses: mamba-org/setup-micromamba@v2
6663
with:
@@ -107,7 +104,7 @@ jobs:
107104
with:
108105
name: wheels-${{ matrix.os }}
109106
path: .nox/_artifacts/wheelhouse/*.whl
110-
retention-days: 30
107+
retention-days: 7
111108

112109

113110
test_builds:
@@ -120,9 +117,9 @@ jobs:
120117
matrix:
121118
os:
122119
- ubuntu-24.04
123-
- ubuntu-22.04-arm
124-
- macos-15-intel
125-
- macos-15
120+
# - ubuntu-22.04-arm
121+
# - macos-15-intel
122+
# - macos-15
126123
steps:
127124
- uses: mamba-org/setup-micromamba@v2
128125
with:

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
project(
33
'mapflpy',
44
['c', 'fortran'],
5-
version : '1.1.1.post1',
5+
version : '1.1.1.test',
66
license : 'Apache-2.0',
77
meson_version : '>=1.1.0',
88
default_options : ['warning_level=1', 'buildtype=release'],

0 commit comments

Comments
 (0)