aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-09-09 15:44:12 +0200
committerEgor Tensin <egor@tensin.name>2025-09-09 16:58:08 +0200
commitfc7289202b24a37a1ef38ea68022eac176d269a6 (patch)
treee2f27ecb1b7a237df74030da6f3111700f6cb7e5
parentworkflows/infra: set up ssh-agent (diff)
downloadmaintenance-fc7289202b24a37a1ef38ea68022eac176d269a6.tar.gz
maintenance-fc7289202b24a37a1ef38ea68022eac176d269a6.zip
workflows: add workflow for Jekyll projects
Diffstat (limited to '')
-rw-r--r--.github/workflows/jekyll.yml42
-rw-r--r--.github/workflows/main.yml8
2 files changed, 48 insertions, 2 deletions
diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml
new file mode 100644
index 0000000..d43eb52
--- /dev/null
+++ b/.github/workflows/jekyll.yml
@@ -0,0 +1,42 @@
+name: Jekyll
+
+on:
+ workflow_call:
+ workflow_dispatch:
+
+jobs:
+ maintenance:
+ strategy:
+ matrix:
+ project:
+ - jekyll-theme
+ runs-on: ubuntu-latest
+ name: '${{ matrix.project }}'
+ steps:
+ - name: Configure SSH
+ run: |
+ mkdir -p ~/.ssh
+ cat > ~/.ssh/config <<'EOF'
+ StrictHostKeyChecking no
+ EOF
+ - name: Set up ssh-agent
+ uses: webfactory/ssh-agent@v0.9.0
+ with:
+ ssh-private-key: '${{ secrets.SSH_KEY }}'
+ - name: Checkout
+ run: |
+ git clone -q 'ssh://git@github.com/egor-tensin/${{ matrix.project }}.git'
+ - name: find
+ run: find
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ bundler-cache: true
+ working-directory: '${{ matrix.project }}'
+ - name: Configure git
+ run: |
+ git config --global user.name 'Egor Tensin'
+ git config --global user.email 'egor@tensin.name'
+ - name: Run maintenance
+ run: |
+ make -C '${{ matrix.project }}' maintenance
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c53bb8f..82e81ee 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -6,9 +6,13 @@ on:
jobs:
- infra:
+ #infra:
+ # secrets: inherit
+ # uses: ./.github/workflows/infra.yml
+
+ jekyll:
secrets: inherit
- uses: ./.github/workflows/infra.yml
+ uses: ./.github/workflows/jekyll.yml
yandex-cloud-cli-bin:
secrets: inherit