mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 13:38:22 +01:00
Merge pull request #581 from getformwork/feature/release-workflow
Add release workflow
This commit is contained in:
commit
bd3310bcfd
27
.gitattributes
vendored
27
.gitattributes
vendored
@ -1,27 +0,0 @@
|
||||
# git
|
||||
.gitattributes export-ignore
|
||||
.gitignore export-ignore
|
||||
.gitkeep export-ignore
|
||||
|
||||
# github
|
||||
.github/ export-ignore
|
||||
|
||||
# vscode
|
||||
.vscode/ export-ignore
|
||||
|
||||
# configs
|
||||
.editorconfig export-ignore
|
||||
formwork/.php-cs-fixer.php export-ignore
|
||||
formwork/.rector.php export-ignore
|
||||
formwork/phpstan-baseline.neon export-ignore
|
||||
formwork/phpstan.neon export-ignore
|
||||
|
||||
# panel
|
||||
panel/.prettierrc export-ignore
|
||||
panel/.stylelintrc.yaml export-ignore
|
||||
panel/.yarnrc.yml export-ignore
|
||||
panel/eslint.config.js export-ignore
|
||||
panel/package.json export-ignore
|
||||
panel/src export-ignore
|
||||
panel/tsconfig.json export-ignore
|
||||
panel/yarn.lock export-ignore
|
49
.github/workflows/release.yaml
vendored
Normal file
49
.github/workflows/release.yaml
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
name: Create release assets
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.2'
|
||||
tools: composer
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --no-dev --optimize-autoloader --no-interaction
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: latest
|
||||
|
||||
- name: Build panel assets
|
||||
run: |
|
||||
corepack enable
|
||||
cd panel
|
||||
yarn install
|
||||
yarn build
|
||||
|
||||
- name: Create archive
|
||||
run: |
|
||||
zip -r formwork-${{ github.event.release.tag_name }}.zip . -x \
|
||||
\*.git/\* \
|
||||
\*.github/\* \
|
||||
\*node_modules/\*
|
||||
|
||||
- name: Upload release assets
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
file: formwork-${{ github.event.release.tag_name }}.zip
|
Loading…
x
Reference in New Issue
Block a user