diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4068b49 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Release + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 14.x + - name: Install dependencies + run: npm install -g semantic-release @semantic-release/github @semantic-release/changelog @semantic-release/git + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: semantic-release -e @semantic-release/github \ No newline at end of file diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..e1a0b01 --- /dev/null +++ b/.releaserc @@ -0,0 +1,13 @@ +{ + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + ["@semantic-release/changelog", { + "changelogFile": "CHANGELOG.md" + }], + "@semantic-release/github", + ["@semantic-release/git", { + "assets": ["CHANGELOG.md"] + }] + ] +} \ No newline at end of file diff --git a/.semver b/.semver deleted file mode 100644 index f689632..0000000 --- a/.semver +++ /dev/null @@ -1,5 +0,0 @@ ---- -:major: 5 -:minor: 1 -:patch: 5 -:special: '' diff --git a/.travis.yml b/.travis.yml index e172881..daf6a84 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,8 @@ php: - hhvm - 7.1 - 7.2 + - 7.4 + - 8.0 dist: trusty diff --git a/composer.json b/composer.json index 9e9a6e0..c62ceb3 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "php": ">=7.2", + "php": "^7.2 || ^8.0 || ^8.1", "symfony/framework-bundle": "^4.4|^5.0|^6.0", "mobiledetect/mobiledetectlib": "^2.8", "twig/twig": "2.*|3.*" diff --git a/package.json b/package.json new file mode 100644 index 0000000..5b98c01 --- /dev/null +++ b/package.json @@ -0,0 +1,4 @@ +{ + "name": "netbull-mobile-detect-bundle", + "version": "1.0.0" +} \ No newline at end of file