Update workflows and README.md

This commit is contained in:
GenZmeY 2022-03-09 06:12:12 +03:00
parent d4cca6d6c1
commit b5d0fa0a9e
3 changed files with 8 additions and 19 deletions

View File

@ -2,7 +2,7 @@ name: autoupdate
on:
schedule:
- cron: '0 0 * * 6'
- cron: '0 0 * * *'
jobs:
merge-upstream:
@ -11,12 +11,16 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup bot
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions"
- name: Add upstream repo
run: git remote add upstream https://github.com/TryGhost/Casper.git
- name: Checkout master
run: git checkout master
- name: Merge upstream
run: git pull upstream main
run: git pull upstream main --tags
- name: Push changes
uses: ad-m/github-push-action@master
with:

View File

@ -1,15 +0,0 @@
name: Deploy Theme
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: TryGhost/action-deploy-theme@v1.4.1
with:
api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
theme-name: "master"

View File

@ -1,8 +1,8 @@
# Casper-i18n
[![Test](https://github.com/GenZmeY/Casper-i18n/workflows/Test/badge.svg)](https://github.com/GenZmeY/Casper-i18n/actions)
[![GitHub](https://img.shields.io/github/license/GenZmeY/Casper-i18n)](LICENSE)
[[![Autoupdate](https://github.com/GenZmeY/Casper-i18n/actions/workflows/autoupdate.yml/badge.svg)](https://github.com/GenZmeY/Casper-i18n/actions/workflows/autoupdate.yml)
[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/GenZmeY/Casper-i18n)](https://github.com/GenZmeY/Casper-i18n/tags)
[![GitHub](https://img.shields.io/github/license/GenZmeY/Casper-i18n)](LICENSE)
The same [casper](https://github.com/TryGhost/Casper), but with localization support.
For more detailed information about theme, see the [casper page](https://github.com/TryGhost/Casper).