Initial Hex Mines fork with hex tiles and mine-count slider.
Based on StefanOltmann/mines (AGPL-3.0): flat-top hex grid, configurable board size, and a mine-count slider replacing fixed difficulty presets. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Kotlin/Wasm
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout workspace
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '17'
|
||||
- name: Display Java version
|
||||
run: java -version
|
||||
- name: List all files
|
||||
run: find .
|
||||
- name: Run Gradle build
|
||||
run: |
|
||||
chmod +x gradlew
|
||||
./gradlew build allTests wasmJsBrowserDistribution
|
||||
- name: Fix permissions
|
||||
run: |
|
||||
chmod -v -R +rX "app/build/dist/wasmJs/productionExecutable/" | while read line; do
|
||||
echo "::warning title=Invalid file permissions automatically fixed::$line"
|
||||
done
|
||||
- name: Deploy over FTP
|
||||
uses: modern-dev/ftp-mirror@v2
|
||||
with:
|
||||
server: ${{ secrets.FTP_SERVER }}
|
||||
user: ${{ secrets.FTP_USERNAME }}
|
||||
password: ${{ secrets.FTP_PASSWORD }}
|
||||
local_dir: "app/build/dist/wasmJs/productionExecutable"
|
||||
remote_dir: "/httpdocs/mines"
|
||||
delete: true
|
||||
Reference in New Issue
Block a user