πͺ First draft for scalability #230
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: | | |
npm install | |
npm run build | |
working-directory: ./assets | |
- name: ποΈ Build core | |
run: | | |
npm install | |
npm run build | |
working-directory: ./core | |
- name: ποΈ Build interface | |
run: | | |
npm install | |
npm run build | |
working-directory: ./interface | |
- name: ποΈ Build sandbox | |
run: | | |
npm install | |
npm run build | |
working-directory: ./sandbox | |
- name: ποΈ Build coverage | |
run: | | |
./run_coverage.sh | |
working-directory: ./core | |
- name: π Deploy | |
uses: JamesIves/[email protected] | |
with: | |
folder: ./sandbox/dist |