Skip to content

fix cfw build? this time fr #605

fix cfw build? this time fr

fix cfw build? this time fr #605

Workflow file for this run

name: Create a release for Kongregate
on:
push:
branches: master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install deps
run: |
npm install
sudo apt install -y jq
- name: Build
run: |
node ./scripts/update-last-updated.js
npm run-script build:esbuild
- name: Remove old .zip
run: |
rm -rf Kong.zip
- name: Create .zip File
uses: vimtor/action-zip@v1
with:
files: dist/ Pictures/ translations/ index.html Synergism.css favicon.ico
dest: Kong.zip
recursive: false
- name: Retrieve version
run: |
echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
id: version
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: v${{ steps.version.outputs.VERSION }}
title: Kongregate Build ${{ github.event.repository.updated_at }}
files: |
Kong.zip