Skip to content

Commit 77bd2c1

Browse files
Merge pull request #2 from aligent/feature/release_action
Add action for creating releases
2 parents 825fbbd + 3727270 commit 77bd2c1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
tags:
4+
- '[0-9].*'
5+
6+
name: Create Release
7+
8+
jobs:
9+
build:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Create Release
17+
id: create_release
18+
uses: softprops/action-gh-release@v2
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
tag_name: ${{ github.ref }}
23+
name: Release ${{ github.ref }}
24+
draft: false
25+
prerelease: false
26+
generate_release_notes: true
27+
28+
- name: Update Packagist
29+
env:
30+
API_TOKEN: ${{ secrets.PackagistApiToken }}
31+
run: curl -XPOST -H'content-type:application/json' 'https://packagist.org/api/update-package?username=aligent&apiToken='$API_TOKEN -d'{"repository":{"url":"https://packagist.org/packages/aligent/magento2-pci-4-compatibility"}}'

0 commit comments

Comments
 (0)