Skip to content

Translated using Weblate (Indonesian) #69

Translated using Weblate (Indonesian)

Translated using Weblate (Indonesian) #69

Workflow file for this run

name: Build and Deploy Web Lexica
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
generate-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install dependencies and build production bundle
run: |
yarn install
yarn build
# This and the following step is based on https://kaizendorks.github.io/2020/04/16/vuepress-github-actions/
- name: Init new repo in ./build and commit production bundle
run: |
cd ./build
git init
git add -A
git config --local user.email "[email protected]"
git config --local user.name "Web Lexica GitHub Action"
git commit -m "[GitHub Actions] Deploy Web Lexica for $GITHUB_SHA"
- name: Force push to gh-pages branch
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./build