π‘οΈ Add cpu time metric #301
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: build | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 5 | |
- name: π¦ Download assets | |
run: | | |
wget -qO- ${{ secrets.ASSET_URL }} > encrypted.gpg | |
gpg --batch --yes --passphrase "${{ secrets.ASSET_SECRET_KEY }}" -o Tiny\ RPG\ Character\ Asset\ Pack\ v1.03b\ -Full\ 20\ Characters.zip -d encrypted.gpg | |
md5sum -c Tiny\ RPG\ Character\ Asset\ Pack\ v1.03b\ -Full\ 20\ Characters.zip.md5sum | |
working-directory: ./assets | |
- name: ποΈ Build assets | |
run: | | |
sudo apt-get update && sudo apt-get install blender draco python3-numpy -y | |
npm install | |
npm audit --audit-level=low | |
npm run build | |
working-directory: ./assets | |
- name: ποΈ Build core | |
run: | | |
npm install | |
npm audit --audit-level=low | |
npm run build | |
working-directory: ./core | |
- name: ποΈ Build interface | |
run: | | |
npm install | |
npm audit --audit-level=low | |
npm run build | |
working-directory: ./interface | |
- name: ποΈ Build sandbox | |
run: | | |
npm install | |
npm audit --audit-level=low | |
npm run build | |
working-directory: ./sandbox | |
- name: ποΈ Build coverage | |
run: | | |
./run_coverage.sh | |
working-directory: ./core | |
- name: ποΈ Build ingame | |
env: | |
VITE_WEBSOCKET_DOMAINS: vps-23842e3b.vps.ovh.net | |
VITE_WEBSOCKET_PORTS: 28035 | |
VITE_WEBSOCKET_PORT_A: 28035 | |
VITE_WEBSOCKET_PROTOCOL: wss | |
run: | | |
npm install | |
npm audit --audit-level=low | |
npm run build | |
working-directory: ./ingame | |
- name: π Deploy | |
uses: JamesIves/github-pages-deploy-action@v4.6.4 | |
with: | |
folder: ./ingame/dist |