Skip to content

Commit

Permalink
Add CI workflow for PHP 8.2 with release and archive steps
Browse files Browse the repository at this point in the history
This commit adds a new GitHub Actions workflow file `ci.yml` that sets up continuous integration (CI) for PHP 8.2. The workflow includes steps to install dependencies using Composer, archive the project, and create a release using the softprops/action-gh-release action.
  • Loading branch information
DarkGL committed Oct 10, 2023
1 parent 7f1ac67 commit ea23634
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

env:
php_version: "8.2"
blob_name: "simpay-wordpress-*.zip"
archive_format: "zip"

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: ${{ env.php_version }}
php_extensions: yaml
- name: Archive project
if: success() || failure()
uses: php-actions/composer@v6
with:
php_version: ${{ env.php_version }}
php_extensions: yaml
command: archive
args: --format=${{ env.archive_format }}
- name: Release
uses: softprops/action-gh-release@v1
if: success() || failure()
with:
files: ${{ env.blob_name }}
tag_name: ${{ inputs.version }}

0 comments on commit ea23634

Please sign in to comment.