Skip to content

Merge pull request #28 from 5TDg9/patch-1 #40

Merge pull request #28 from 5TDg9/patch-1

Merge pull request #28 from 5TDg9/patch-1 #40

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Deploy sites
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
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:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- name: Import translations
run: python importTranslation.py
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
node-version: '18'
- name: Install packages
run: |
npm install
- name: Build docs
run: npx vuepress build docs
- name: Checkout gh-pages branch
uses: actions/checkout@v3
with:
ref: gh-pages
path: gh-pages
- name: Copy files to gh-pages dir
run: cp -r ./docs/.vuepress/dist/* ./gh-pages/
- name: Commit and push to gh-pages
run: |
cd ./gh-pages
date > generated.txt
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Deploy"
git push