Skip to content

remove create pr action #79

remove create pr action

remove create pr action #79

name: Get Model Data
on:
push:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: master
- name: Clone trained-models-template
uses: GuillaumeFalourd/clone-github-repo-action@v2
with:
owner: 'neuronets'
repository: 'trained-models-template'
- name: Move package.json and package-lock.json to root
run: |
mv ./.github/workflows/package-lock.json ./package-lock.json
mv ./.github/workflows/package.json ./package.json
- name: Use node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- run: npm ci
- name: Run get_model_data.js
run: node ./.github/workflows/get_model_data.js
- name: Extract files from clone and remove clone
run: |
mv ./trained-models-template/docs .
rm -r ./trained-models-template
- name: Use GitHub Actions' cache to shorten build times and decrease load on servers
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Build and publish Jekyll site to gh-pages
uses: helaili/jekyll-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_branch: 'gh-pages'