Skip to content

chore: connect sonar vscode (#8) #7

chore: connect sonar vscode (#8)

chore: connect sonar vscode (#8) #7

Workflow file for this run

name: Deploy Game
on:
push:
branches:
- main
tags:
- v*
env:
EM_VERSION: "latest"
EM_CACHE_FOLDER: "emsdk-cache"
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
name: Deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup cache
id: cache-system-libraries
uses: actions/cache@v2
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- uses: mymindstorm/setup-emsdk@v11
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: Run CMake
run: emcmake cmake -G "Unix Makefiles" .
- name: Make
run: emmake make -j4
- uses: actions/upload-pages-artifact@v1
with:
path: ./build
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v2
- name: Deploy to A.D.S. Games
if: startsWith(github.ref, 'refs/tags/v')
uses: adsgames/deploy-to-adsgames@v1.1.2
with:
project-id: mini-jim
build-dir: ./build/
platform: WEB
bucket-access-key: ${{ secrets.LINODE_BUCKET_ACCESS_KEY }}
bucket-secret-key: ${{ secrets.LINODE_BUCKET_SECRET_KEY }}
api-key: ${{ secrets.ADSGAMES_API_KEY }}