Skip to content

Merge pull request #37 from blackinai/neurips24 #38

Merge pull request #37 from blackinai/neurips24

Merge pull request #37 from blackinai/neurips24 #38

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: CI Black in AI webpage deployment
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Clean cache
run: npm cache clean --force
- name: Install Dependencies
run: npm install
- name: Deploy
run: |
git config --global user.name blackinai
git config --global user.email blackinai@gmail.com
git remote set-url origin https://${github_token}@github.com/${repository}
npm run deploy
env:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
github_token: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }}
repository: ${{ github.repository }}