diff options
-rw-r--r-- | .github/workflows/jekyll.yml | 42 | ||||
-rw-r--r-- | .github/workflows/main.yml | 8 |
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 |