fuck you safari � #613
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
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 |