Files
screeps-code/.github/workflows/deploy.yaml
NinjaSurge c2fcb163de
All checks were successful
Screeps Deploy / setup-and-deploy (push) Successful in 10s
Think I fixed caching issue and now re-implementing the job
2025-10-23 13:25:59 -05:00

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