diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 0000000..2147a8d --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,26 @@ +name: Create Release + +on: + push: + branches: + - flexy + +jobs: + create-release: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Read version from composer.json + id: read_version + run: | + VERSION=$(jq -r '.version' composer.json) + echo "version=$VERSION" >> $GITHUB_ENV + + - name: Create GitHub Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create ${{ env.version }} --generate-notes --latest diff --git a/composer.json b/composer.json index b4af2f5..cc80cd3 100644 --- a/composer.json +++ b/composer.json @@ -1,4 +1,5 @@ { + "version": "1.0.0", "name": "thelia/flexy", "description": "thelia design system", "license": "LGPL-3.0+",