chore(ci): remove useless code and update create-pull-request #494
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: All Source Files | |
| on: | |
| push: | |
| release: | |
| types: [published, edited] | |
| jobs: | |
| linux: | |
| name: All Source Files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install git | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y git | |
| - name: Get the version | |
| id: get_version | |
| shell: bash | |
| run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT | |
| - name: Checking out sources | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: "recursive" | |
| - name: Create 7z Release | |
| uses: DuckSoft/[email protected] | |
| with: | |
| pathSource: ./ | |
| pathTarget: ./Lemon-${{ steps.get_version.outputs.VERSION }}-source-all.7z | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Lemon-${{ steps.get_version.outputs.VERSION }}-source-all.7z | |
| path: Lemon-${{ steps.get_version.outputs.VERSION }}-source-all.7z | |
| - name: Upload binaries to release | |
| uses: svenstaro/upload-release-action@v2 | |
| if: startsWith(github.event.ref, 'refs/tags/') | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: Lemon-${{ steps.get_version.outputs.VERSION }}-source-all.7z | |
| asset_name: Lemon-${{ steps.get_version.outputs.VERSION }}-source-all.7z | |
| tag: ${{ github.ref }} | |
| overwrite: true |