Skip to content

Commit

Permalink
Merge pull request #6 from IPLSplatoon/dashboard-stages
Browse files Browse the repository at this point in the history
Get stage images from the dashboard
  • Loading branch information
inkfarer authored Sep 2, 2023
2 parents 5601b66 + 10ea921 commit 14f1090
Show file tree
Hide file tree
Showing 50 changed files with 4,443 additions and 1,370 deletions.
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

0 comments on commit 14f1090

Please sign in to comment.