mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-29 21:41:00 +08:00
28 lines
651 B
YAML
28 lines
651 B
YAML
|
name: LCTT Article Badge
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [master]
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- name: checkout old pages branch
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
repository: lctt/translateproject
|
||
|
path: build
|
||
|
ref: gh-pages
|
||
|
- name: remove pages .git
|
||
|
run: rm -rf ./build/.git
|
||
|
- name: run badge
|
||
|
run: sh ./scripts/badge.sh;
|
||
|
- uses: crazy-max/ghaction-github-pages@v2.2.0
|
||
|
with:
|
||
|
build_dir: ./build
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|