-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (32 loc) · 974 Bytes
/
deploy.yml
File metadata and controls
32 lines (32 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: npm install
- name: Build VuePress site
run: npm run build
- name: Track changes
run: git add . && git stash
- name: Apply changes to GitHub Pages
run: git checkout gh-pages && git stash pop
- name: Extract build
run: |
rm -rf assets
rm -rf intro
mv src/.vuepress/dist/* .
rm -rf src
git add .
- name: Push
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m '${{ github.event.head_commit.message }}'
git remote set-url origin https://dimacrafter:${{ secrets.GITHUB_TOKEN }}@github.com/mayerdev/osdev.git
git push