4184: Updated config ignore settings #7
Workflow file for this run
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
| on: | |
| push: | |
| tags: | |
| - '*.*.*' | |
| name: Create Github Release | |
| permissions: | |
| contents: write | |
| env: | |
| COMPOSE_USER: runner | |
| jobs: | |
| create-release: | |
| runs-on: ubuntu-latest | |
| env: | |
| COMPOSER_ALLOW_SUPERUSER: 1 | |
| APP_ENV: prod | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Composer install | |
| run: | | |
| docker network create frontend | |
| docker compose run --rm --user=root phpfpm composer install --no-dev -o --classmap-authoritative | |
| docker compose run --rm --user=root phpfpm composer clear-cache | |
| - name: Build theme | |
| run: | | |
| docker compose run --rm node yarn install | |
| docker compose run --rm node yarn build | |
| docker compose run --rm node rm -rf node_modules | |
| - name: Make assets dir | |
| run: | | |
| mkdir -p ../assets | |
| - name: Create archive | |
| run: | | |
| sudo chown -R runner:runner ./ | |
| tar --exclude='.git' -zcf ../assets/${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz ./ | |
| - name: Create checksum | |
| run: | | |
| cd ../assets | |
| sha256sum ${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz > ../assets/checksum.txt | |
| - name: Create a release in GitHub and uploads assets | |
| run: gh release create ${{ github.ref_name }} --verify-tag --generate-notes ../assets/*.* | |
| env: | |
| GITHUB_TOKEN: ${{ github.TOKEN }} | |
| shell: bash |