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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 clean all -j $(nproc)
  34. DATE=$(date "+%Y_%m_%d_%H_%M_%S")
  35. cp duality.gb docs/duality.gb
  36. cp duality.gb docs/duality_$DATE.gb
  37. sed -i "s/duality.gb/duality_$DATE.gb" docs/index.html
  38. - name: Setup Pages
  39. uses: actions/configure-pages@v2
  40. - name: Upload artifact
  41. uses: actions/upload-pages-artifact@v3
  42. with:
  43. path: ${{github.workspace}}/repo/docs
  44. - name: Deploy to GitHub Pages
  45. id: deployment
  46. uses: actions/deploy-pages@v4