Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
holzi1005 committed Nov 21, 2024
1 parent 6e54a82 commit 8add5fe
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Create Release

env:
GITHUB_TOKEN: ${{ secrets.token }}

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Update PHP Version and tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ vars.PHP_VERSION }}
ini-values: date.timezone ="Europe/Berlin"
extensions: gd,intl,mbstring

- name: Run composer Install
run: php composer.phar install

- uses: paulhatch/[email protected]
id: version
with:
tag_prefix: ""
major_pattern: "(MAJOR)"
minor_pattern: "(MINOR)"
change_path: .
version_format: "${major}.${minor}.${patch}"

- name: Archive Release for application
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'filemanager-${{ steps.version.outputs.version }}.zip'
exclusions: '*.git* *.idea* *.github* /*var/* .editorconfig'
directory: .

- name: Create new Release with semantic-version tag
uses: ncipollo/release-action@v1
id: create_release
with:
draft: false
prerelease: true
name: Release ${{ steps.version.outputs.version }}
tag: ${{ steps.version.outputs.version }}
artifacts: application.zip
artifactContentType: application/zip
bodyFile: RELEASE_NOTE.md

0 comments on commit 8add5fe

Please sign in to comment.