Update c-cpp.yml #5
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: Build and Release | |
| on: | |
| push: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/crazyquark/qt6-base:6.7.0-ubuntu | |
| options: --user 1001 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build with qmake and make | |
| run: | | |
| qmake | |
| make | |
| - name: Archive build | |
| run: | | |
| mkdir -p dist | |
| cp <your_binary> dist/ | |
| cp README.md dist/ | |
| cd dist | |
| tar -czvf ../MasterStringz.tar.gz * | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: MasterStringz.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |