Skip to content

Commit

Permalink
Update github ci and add editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
c12i committed Nov 28, 2023
1 parent f48b2b6 commit fba7d83
Show file tree
Hide file tree
Showing 4 changed files with 344 additions and 29 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.yml]
indent_style = space
indent_size = 2
18 changes: 8 additions & 10 deletions .github/workflows/ghp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@ on:
branches:
- master

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- uses: actions/setup-python@v4
with:
python-version: '3.10'
node-version: '18.x'
- run: |
npm ci
npm run build
pip install ghp-import
ghp-import -n ./dist
git push -qf https://github.com/c12i/pixie.git gh-pages
npm ci
npm run build
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/c12i/pixie.git
npx gh-pages -d ./dist -u "github-actions-bot <support+actions@github.com>"
Loading

0 comments on commit fba7d83

Please sign in to comment.