Initial commit

This commit is contained in:
Kristofers Solo
2022-04-27 11:41:37 +03:00
commit f1d310a07d
700 changed files with 101758 additions and 0 deletions

View File

@@ -0,0 +1 @@
@streetturtle

View File

@@ -0,0 +1 @@
github: streetturtle

View File

@@ -0,0 +1,30 @@
# This is a basic workflow to help you get started with Actions
name: luacheck
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches:
- '*'
paths:
- '**.lua'
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Run Luacheck
uses: nebularg/actions-luacheck@v1.1.0

View File

@@ -0,0 +1,43 @@
name: update site
on:
push:
branches:
- 'master'
paths:
- '**/README.md'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate md
run: ./scripts/update_site.sh
- name: Push to gh-pages branch
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add ./_widgets
git add ./assets/img/widgets
git stash
git fetch
echo "git checkout gh-pages"
git checkout gh-pages
rm -rf ./_widgets
rm -rf ./assets/img/widgets
ls -alF
echo "git stash pop"
git checkout stash -- ./_widgets
git checkout stash -- ./assets/img/widgets
git add ./_widgets
git add ./assets/img/widgets
git commit -m "update from master"
git push origin gh-pages