Package and Release GamerzOS.apbx #33
This file contains hidden or 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: Package and Release GamerzOS.apbx | |
| on: | |
| push: | |
| tags: | |
| - 'GamerzOS.apbx' # Trigger on tag 'GamerzOS.apbx' | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| package-and-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install p7zip | |
| run: sudo apt-get update && sudo apt-get install -y p7zip-full | |
| - name: Archive ./src/ to GamerzOS.apbx with password | |
| run: | | |
| 7z a -p"malte" -t7z GamerzOS.7z ./src/* | |
| mv GamerzOS.7z GamerzOS.apbx | |
| - name: Create Release and Upload Asset | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: 0.2 | |
| name: 0.2 | |
| files: GamerzOS.apbx | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
| run: | |