-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from IPLSplatoon/dashboard-stages
Get stage images from the dashboard
- Loading branch information
Showing
50 changed files
with
4,443 additions
and
1,370 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -99,4 +80,4 @@ jobs: | |
with: | ||
github_token: ${{ secrets['GITHUB_TOKEN'] }} | ||
branch: build | ||
directory: ./nodecg/bundles/sac-overlays | ||
directory: ./sac-overlays |
Oops, something went wrong.