Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a release builder workflow #2165

Merged
merged 56 commits into from
Dec 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1b4a1c4
First implementation of release builder workflow
fballiano May 29, 2022
57baeb1
Removed Pelago_Emogrifier since it had to be removed from the compose…
fballiano May 29, 2022
50ffbe3
Merge branch 'OpenMage:1.9.4.x' into first_release_builder_workflow
fballiano Jul 27, 2022
3d85cc1
Update release.yml
fballiano Jul 27, 2022
8b28f32
Update release.yml
fballiano Jul 27, 2022
5f12b10
Update release.yml
fballiano Jul 27, 2022
db99d92
Update release.yml
fballiano Jul 27, 2022
53f53ee
Update release.yml
fballiano Jul 27, 2022
21ef675
First implementation of release builder workflow
fballiano May 29, 2022
32653dc
Removed Pelago_Emogrifier since it had to be removed from the compose…
fballiano May 29, 2022
7e8bb3f
Update release.yml
fballiano Jul 27, 2022
197b68b
Update release.yml
fballiano Jul 27, 2022
9dd9c9d
Update release.yml
fballiano Jul 27, 2022
ed890e1
Update release.yml
fballiano Jul 27, 2022
cfc2278
Update release.yml
fballiano Jul 27, 2022
b3aabfa
Merge branch 'first_release_builder_workflow' of github.com:fballiano…
fballiano Aug 11, 2022
23bcdc9
Update release.yml
fballiano Aug 11, 2022
9d1e652
Update release.yml
fballiano Aug 11, 2022
bc5b4eb
Update release.yml
fballiano Aug 11, 2022
5d8ac4a
Update release.yml
fballiano Aug 11, 2022
598c81c
Update release.yml
fballiano Aug 11, 2022
103044c
Update release.yml
fballiano Aug 11, 2022
e14bb34
Update release.yml
fballiano Aug 11, 2022
6af62e6
Update release.yml
fballiano Aug 12, 2022
28d133e
Merge branch 'first_release_builder_workflow' of github.com:fballiano…
fballiano Aug 16, 2022
f6a453e
added no-dev parameter to make the release smaller
fballiano Aug 16, 2022
295d315
Merge branch '1.9.4.x' into first_release_builder_workflow
fballiano Aug 28, 2022
61fe1b9
Merge branch '1.9.4.x' into first_release_builder_workflow
sreichel Sep 12, 2022
58efd97
Merge branch '1.9.4.x' into first_release_builder_workflow
fballiano Dec 3, 2022
e8386dc
removed php version output, changed php versions and ubuntu version
fballiano Dec 3, 2022
51e8f9c
Switched deploy strategy + cleaning vendor
fballiano Dec 3, 2022
5b08583
Added phpseclib stuff
fballiano Dec 3, 2022
e7ea83a
Merge branch '1.9.4.x' into first_release_builder_workflow
fballiano Dec 3, 2022
35cd0f1
reset composer.json
fballiano Dec 3, 2022
df2ad52
removing vendor as root
fballiano Dec 3, 2022
99ba78e
added emogrifier
fballiano Dec 3, 2022
081d878
fixed emogrifier path
fballiano Dec 3, 2022
95cf9ff
added sabberworm
fballiano Dec 3, 2022
f3ec453
fixed autoloader for namespaces
fballiano Dec 3, 2022
c5f0ace
fixed phpcs
fballiano Dec 3, 2022
8045ffc
Merge branch '1.9.4.x' into first_release_builder_workflow
sreichel Dec 4, 2022
4271c3b
Merge branch '1.9.4.x' into first_release_builder_workflow
fballiano Dec 4, 2022
6797ff1
deploy strategy in composer.json + only one php version
fballiano Dec 4, 2022
fed817f
Merge branch 'first_release_builder_workflow' of github.com:fballiano…
fballiano Dec 4, 2022
bac8738
updated composer lock
fballiano Dec 4, 2022
4e9f872
now vendor is included in the zip
fballiano Dec 5, 2022
2aac0b0
reverted patch to autoloader
fballiano Dec 5, 2022
7317b5e
rewrote
fballiano Dec 6, 2022
293deb2
no-dev
fballiano Dec 6, 2022
cdcf5b9
Merge branch '1.9.4.x' into first_release_builder_workflow
fballiano Dec 12, 2022
5e695d2
Merge branch '1.9.4.x' into first_release_builder_workflow
fballiano Dec 14, 2022
846c356
merge 1.9.4.x
fballiano Dec 14, 2022
fe4df73
Merge branch 'first_release_builder_workflow' of github.com:fballiano…
fballiano Dec 14, 2022
99be3b6
added magento-force
fballiano Dec 14, 2022
5e77c74
composer update, forced by workflow
fballiano Dec 14, 2022
2c433aa
Merge branch '1.9.4.x' into first_release_builder_workflow
fballiano Dec 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release builder

on:
release:
types: [created]

jobs:
release_build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.3']
sreichel marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Checkout repository
uses: actions/checkout@master

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Composer install
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-* --no-dev

- name: Create ZIP file
run: zip -rq openmage-${{ github.event.release.tag_name }}.zip . -x '.git/*'

- name: Attach ZIP to GitHub release
uses: svenstaro/upload-release-action@master
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: openmage-${{ github.event.release.tag_name }}.zip
tag: ${{ github.event.release.tag_name }}
overwrite: true
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
"branch-alias": {
"dev-main": "1.9.4.x-dev"
},
"magento-root-dir": "."
"magento-root-dir": ".",
"magento-deploystrategy": "copy",
"magento-deploystrategy-dev": "symlink",
"magento-force": true
},
"config": {
"allow-plugins": {
Expand Down
128 changes: 88 additions & 40 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.