All checks were successful
Screeps Deploy / setup-and-deploy (push) Successful in 10s
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Screeps Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
setup-and-deploy:
|
|
runs-on: node-23
|
|
env:
|
|
RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
# node-version: 23.11.1
|
|
cache: npm
|
|
|
|
- name: Cache Node modules
|
|
id: cache-node-modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: node_modules
|
|
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node_modules-
|
|
|
|
- name: Install dependencies
|
|
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
|
run: |
|
|
cd $GITHUB_WORKSPACE
|
|
npm install -g grunt-cli && npm i
|
|
|
|
- name: Secret File Generation
|
|
env:
|
|
SCREEPS_SECRETS: ${{ secrets.SCREEPS_SECRETS }}
|
|
run: |
|
|
cd $GITHUB_WORKSPACE
|
|
echo $SCREEPS_SECRETS | base64 -d > .screeps.json
|
|
|
|
- name: Deploy
|
|
run: |
|
|
cd $GITHUB_WORKSPACE
|
|
npx grunt
|