Добро пожаловать, или посторонним вход воспрещён (часть 2) #20
Workflow file for this run
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 | |
on: | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Build | |
run: | | |
NODE_ENV=development npm install && npm run build --if-present | |
if [[ $(find . -maxdepth 1 -type d -name 'dist') == '' ]] | |
then | |
cp -r public dist | |
fi | |
mkdir actions_artifacts | |
echo "prev.event.number=${{ github.event.number }}" > actions_artifacts/env | |
mv dist actions_artifacts | |
- name: Save build | |
uses: actions/upload-artifact@master | |
with: | |
name: actions_artifacts | |
path: actions_artifacts |