You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.6 KiB
YAML
46 lines
1.6 KiB
YAML
4 years ago
|
name: continuous integration
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [master, feat/*]
|
||
|
tags:
|
||
|
- v*
|
||
|
pull_request:
|
||
|
branches: [master]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: checkout code
|
||
|
uses: actions/checkout@v2
|
||
|
- name: setup node
|
||
|
uses: actions/setup-node@v1
|
||
|
- name: install dependencies
|
||
|
run: |
|
||
|
npm install
|
||
|
cd backend
|
||
|
npm install
|
||
|
sudo npm install -g @angular/cli
|
||
|
- name: build
|
||
|
run: ng build --prod
|
||
|
- name: prepare artifact upload
|
||
|
shell: pwsh
|
||
|
run: |
|
||
|
New-Item -Name build -ItemType Directory
|
||
|
New-Item -Path build -Name youtubedl-material -ItemType Directory
|
||
|
Copy-Item -Path ./backend/appdata -Recurse -Destination ./build/youtubedl-material
|
||
|
Copy-Item -Path ./backend/audio -Recurse -Destination ./build/youtubedl-material
|
||
|
Copy-Item -Path ./backend/authentication -Recurse -Destination ./build/youtubedl-material
|
||
|
Copy-Item -Path ./backend/public -Recurse -Destination ./build/youtubedl-material
|
||
|
Copy-Item -Path ./backend/subscriptions -Recurse -Destination ./build/youtubedl-material
|
||
|
Copy-Item -Path ./backend/video -Recurse -Destination ./build/youtubedl-material
|
||
|
Copy-Item -Path ./backend/*.js -Destination ./build/youtubedl-material
|
||
|
Copy-Item -Path ./backend/*.json -Destination ./build/youtubedl-material
|
||
|
- name: upload build artifacts
|
||
|
uses: actions/upload-artifact@v1
|
||
|
with:
|
||
|
name: youtubedl-material
|
||
|
path: build
|
||
|
|