Translated using Weblate (Estonian) #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |