Skip to content

fix cpm/accuracy crashed when reset stats and add another exercise le… #98

fix cpm/accuracy crashed when reset stats and add another exercise le…

fix cpm/accuracy crashed when reset stats and add another exercise le… #98

Workflow file for this run

name: "godot-ci export"
on: push
env:
GODOT_VERSION: "4.2"
EXPORT_NAME: ultimate-myanmar-typing-wizard
PROJECT_PATH: ./
jobs:
export-windows:
name: Windows Export
runs-on: ubuntu-20.04
container:
image: 09799474633/mm-typing-game-godot
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
cp -rvf /templates/${GODOT_VERSION}.stable/* ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable/
- name: Windows Build
run: |
mkdir -v -p build/windows
cp -rvf Texts build/windows/
godot --headless --export-debug "Windows Desktop"
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: ultimate-myanmar-typing-wizard_windows_debug_x64_64.zip
path: build/windows
export-linux:
name: Linux Export
runs-on: ubuntu-20.04
container:
image: 09799474633/mm-typing-game-godot
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
cp -rvf /templates/${GODOT_VERSION}.stable/* ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable/
- name: Linux Build
run: |
mkdir -v -p build/linux
cp -rvf Texts build/linux/
godot --headless --export-debug "Linux/X11"
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: ultimate-myanmar-typing-wizard_linux_debug_x86_x64.zip
path: build/linux
# export-web:
# name: Web Export
# runs-on: ubuntu-20.04
# container:
# image: barichello/godot-ci:3.3.4
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# lfs: true
# - name: Setup
# run: |
# mkdir -v -p ~/.local/share/godot/templates
# mv /templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
# - name: Web Build
# run: |
# mkdir -v -p build/web
# cd $PROJECT_PATH
# godot -v --export "HTML5" ../build/web/index.html
# - name: Upload Artifact
# uses: actions/upload-artifact@v1
# with:
# name: web
# path: build/web
# - name: Install rsync 📚
# run: |
# apt-get update && apt-get install -y rsync
# - name: Deploy to GitHub Pages 🚀
# uses: JamesIves/github-pages-deploy-action@releases/v4
# with:
# branch: gh-pages # The branch the action should deploy to.
# folder: build/web # The folder the action should deploy.
# export-mac:
# name: Mac Export
# runs-on: ubuntu-20.04
# container:
# image: barichello/godot-ci:3.3.4
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# lfs: true
# - name: Setup
# run: |
# mkdir -v -p ~/.local/share/godot/templates
# mv /templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
# - name: Mac Build
# run: |
# mkdir -v -p build/mac
# cd $PROJECT_PATH
# godot -v --export "Mac OSX" ../build/mac/$EXPORT_NAME.zip
# - name: Upload Artifact
# uses: actions/upload-artifact@v1
# with:
# name: mac
# path: build/mac
create-release:
name: Create Release
needs: [export-windows, export-linux]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: build/
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
body: ""
- name: Upload Windows Build to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/ultimate-myanmar-typing-wizard_windows_debug_x64_64.zip
asset_name: ultimate-myanmar-typing-wizard_windows_debug_x64_64.zip
asset_content_type: application/zip
- name: Upload Linux Build to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/ultimate-myanmar-typing-wizard_linux_debug_x86_x64.zip
asset_name: ultimate-myanmar-typing-wizard_linux_debug_x86_x64.zip
asset_content_type: application/zip