added minigames #173
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# 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 | |
- uses: actions/checkout@v3 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- run: | | |
echo Installing dependencies for vuepress | |
export NODE_OPTIONS=--openssl-legacy-provider | |
npm i | |
echo Build the app | |
npm run build | |
echo Push builded code to website repo | |
cd src/.vuepress/dist | |
echo 'fyrox.rs' > CNAME | |
git init | |
echo Set git user | |
git config user.name "GitHub Actions Bot" | |
echo Set git mail | |
git config user.email "<>" | |
echo Set git url | |
git remote add origin [email protected]:FyroxEngine/rg3d.rs.git | |
echo Committing deploy | |
git add -A | |
git commit -m 'deploy' | |
echo Trying to push stuff | |
git push origin HEAD:gh-pages -f |