Ninjdai1 launched building #32
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: Building game for linux ! | |
run-name: ${{ github.actor }} launched building | |
on: | |
push: | |
paths-ignore: | |
- '.idea/**' | |
- '.github/**' | |
- 'README.md' | |
- 'LICENSE.md' | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Rename index.py to __main__.py | |
run: mv index.py __main__.py | |
- name: Create zip from files | |
run: zip -r game.zip * | |
- name: Add env indications and remove .zip extension | |
run: echo '#!/usr/bin/env python3' | cat - game.zip > game | |
- name: Remove zip file | |
run: rm game.zip | |
- name: Add executable tag to game | |
run: chmod a+x game | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: game | |
path: ./game | |
retention-days: 5 |