Release of 3.0.1 (#175) #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Actions | |
on: | |
push: | |
tags: | |
- '*' # Create for all tags a draft release | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: Release Actions | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install php dependencies | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: '7.2' | |
- name: Get Release Version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
id: version | |
- name: Get Changelog Entry | |
id: changelog_reader | |
uses: mindsers/changelog-reader-action@v2 | |
with: | |
validation_level: warn | |
version: ${{steps.version.outputs.version}} | |
path: ./CHANGELOG.md | |
- name: Build project | |
run: ./bin/release.sh ${{steps.version.outputs.version}} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{steps.version.outputs.version}} | |
release_name: ${{steps.version.outputs.version}} | |
body: ${{steps.changelog_reader.outputs.changes}} | |
draft: true | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./.dist/Plugin_Shopware_${{steps.version.outputs.version}}.zip | |
asset_name: Plugin_Shopware_${{steps.version.outputs.version}}.zip | |
asset_content_type: application/zip |