GameBoy (Color) port of the GTA San Andreas arcade game Duality
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docs.yml 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name: Web
  2. # only build single instance of docs for latest main branch
  3. on:
  4. push:
  5. branches:
  6. - main
  7. jobs:
  8. deploy:
  9. runs-on: ubuntu-latest
  10. permissions:
  11. contents: write
  12. pages: write
  13. id-token: write
  14. steps:
  15. - name: Install dependencies
  16. working-directory: ${{github.workspace}}
  17. shell: bash
  18. run: |
  19. wget https://github.com/gbdk-2020/gbdk-2020/releases/download/4.4.0/gbdk-linux64.tar.gz
  20. tar -xzf gbdk-linux64.tar.gz
  21. - name: Checkout repo
  22. uses: actions/checkout@v4
  23. with:
  24. path: repo
  25. fetch-depth: 0
  26. - name: Get core count
  27. id: core_count
  28. run : cat /proc/cpuinfo | grep processor | wc -l
  29. - name: Build
  30. working-directory: ${{github.workspace}}/repo
  31. shell: bash
  32. run: |
  33. make clean
  34. make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 all -j $(nproc)
  35. DATE=$(date "+%Y_%m_%d_%H_%M_%S")
  36. cp duality.gb docs/duality.gb
  37. cp duality.gb docs/duality_$DATE.gb
  38. sed -i "s/duality.gb/duality_$DATE.gb/g" docs/index.html
  39. - name: Setup Pages
  40. uses: actions/configure-pages@v2
  41. - name: Upload artifact
  42. uses: actions/upload-pages-artifact@v3
  43. with:
  44. path: ${{github.workspace}}/repo/docs
  45. - name: Deploy to GitHub Pages
  46. id: deployment
  47. uses: actions/deploy-pages@v4