diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index fc74c88..0202e3d 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -9,16 +9,18 @@ jobs: name: PHPStan steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 - + php-version: '8.2' + coverage: none + tools: phpstan + - name: Get composer cache directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies uses: actions/cache@v3 @@ -31,4 +33,4 @@ jobs: run: composer install --no-interaction --no-suggest - name: Run analysis - run: vendor/bin/phpstan analyse + run: phpstan analyse diff --git a/.github/workflows/pint.yml b/.github/workflows/pint.yml index d4558a2..483e92b 100644 --- a/.github/workflows/pint.yml +++ b/.github/workflows/pint.yml @@ -9,12 +9,13 @@ jobs: name: Laravel Pint steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' + coverage: none tools: laravel/pint - name: Run analysis diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d64796c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publish + +on: + push: + tags: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Get latest release info + id: get-release-info + uses: release-flow/keep-a-changelog-action/get-release-info@v1 + with: + release-version: latest + + - name: Publish to Github releases + uses: softprops/action-gh-release@v1 + with: + body: ${{ steps.get-release-info.outputs.release-notes }} + # prerelease: true + # files: '*.vsix' \ No newline at end of file