Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get stage images from the dashboard #6

Merged
merged 2 commits into from
Sep 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 12 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,29 @@ jobs:
lint-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout nodecg/nodecg
uses: actions/checkout@v2
with:
token: ${{ secrets['GITHUB_TOKEN'] }}
repository: nodecg/nodecg
path: ./nodecg-temp

- name: Copy ./nodecg-temp > ./nodecg
run: cp -r ./nodecg-temp ./nodecg

- name: Checkout this repository
uses: actions/checkout@v2
with:
token: ${{ secrets['GITHUB_TOKEN'] }}
ref: ${{ github.ref }}
fetch-depth: 0
path: ./nodecg/bundles/sac-overlays
path: ./sac-overlays

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Set up NPM cache
uses: actions/cache@v2
uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Update NPM
run: npm install -g [email protected]
node-version: 18
cache: 'npm'
cache-dependency-path: ./sac-overlays/package-lock.json

- name: Install NPM dependencies
working-directory: ./nodecg/bundles/sac-overlays
working-directory: ./sac-overlays
run: npm ci
env:
GSAP_AUTH: ${{ secrets.GSAP_AUTH }}

- name: Run ESLint on source
working-directory: ./nodecg/bundles/sac-overlays
working-directory: ./sac-overlays
run: npm run lint

- name: Set up GitHub for SSH access
Expand All @@ -63,23 +44,23 @@ jobs:

- name: Set git config
if: github.ref == 'refs/heads/master'
working-directory: ./nodecg/bundles/sac-overlays
working-directory: ./sac-overlays
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"

- name: Merge master branch into build branch
if: github.ref == 'refs/heads/master'
continue-on-error: true
working-directory: ./nodecg/bundles/sac-overlays
working-directory: ./sac-overlays
run: |
git checkout master
git checkout build
git merge master

- name: Build
if: github.ref == 'refs/heads/master'
working-directory: ./nodecg/bundles/sac-overlays
working-directory: ./sac-overlays
run: |
npm run clean
npm run build
Expand All @@ -88,7 +69,7 @@ jobs:
if: github.ref == 'refs/heads/master'
id: commit
continue-on-error: true
working-directory: ./nodecg/bundles/sac-overlays
working-directory: ./sac-overlays
run: |
git add -f graphics
git commit -m "Build result from master branch" -a
Expand All @@ -99,4 +80,4 @@ jobs:
with:
github_token: ${{ secrets['GITHUB_TOKEN'] }}
branch: build
directory: ./nodecg/bundles/sac-overlays
directory: ./sac-overlays
Loading