mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 21:41:59 +03:00
start commit
This commit is contained in:
parent
225cc4e9ba
commit
6e1da7f0cd
13
.github/workflows/gh-pages.yml
vendored
13
.github/workflows/gh-pages.yml
vendored
@ -9,6 +9,8 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
BUILD_SHA: ${GITHUB_SHA}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
@ -24,5 +26,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: "gh-pages"
|
ref: "gh-pages"
|
||||||
clean: false
|
clean: false
|
||||||
- name: move files
|
- name: Move & Commit files
|
||||||
run: rm -rf !("build" | ".git") && mv ./build/html/*.* . && rm -rf ./build && ls -lah
|
run: |
|
||||||
|
mv ./build/html/*.* . && rm -rf ./build && rm-rf function_timer && ls -lah
|
||||||
|
git config --global user.name github-actions
|
||||||
|
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
|
||||||
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
||||||
|
git add *.*
|
||||||
|
git commit -am "Documentation for ${BUILD_SHA}" || true
|
||||||
|
git push --force origin HEAD:$GITHUB_REF || true
|
||||||
|
Loading…
Reference in New Issue
Block a user