Create release #4
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
| name: Create release | |
| on: | |
| push: | |
| tags: | |
| - "[0-9]+.[0-9]+.[0-9]+" | |
| permissions: | |
| contents: "write" | |
| jobs: | |
| release: | |
| name: Release pushed tag | |
| runs-on: ubuntu-22.04 | |
| env: | |
| TAG: ${{ github.ref_name }} | |
| steps: | |
| - name: Package | |
| run: | | |
| mkdir autoverifactu | |
| mv admin ajax class cre css img js langs lib LICENSE env.php autoverifactu | |
| zip -r "autoverifactu-$TAG.zip" autoverifactu | |
| - name: Create release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh release create "$TAG" \ | |
| --repo="$GITHUB_REPOSITORY" \ | |
| --title="$TAG" \ | |
| --generate-notes | |
| "autoverifactu-$TAG.zip" |