aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/jekyll.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/jekyll.yml42
1 files changed, 42 insertions, 0 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