cd #1
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: cd | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
pages: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@master | |
with: | |
repository: gamelly/gly-engine | |
ref: develop | |
- | |
uses: actions/checkout@master | |
with: | |
path: game | |
- | |
uses: leafo/gh-actions-lua@v10 | |
with: | |
luaVersion: '5.4' | |
- | |
run: | |
docker run --rm -v $(pwd)/app -w /app haxe:4.3.6-bullseye haxe game/src/Game.hx --lua haxe/game.lua | |
- | |
run: | | |
./cli.sh tool-haxe-build haxe/game.lua | |
- | |
run: | | |
./cli.sh build --core html5 haxe/game.lua | |
- | |
uses: actions/configure-pages@v3 | |
- | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: 'dist' | |
- | |
id: deployment | |
uses: actions/deploy-pages@v2 |