Skip to content

Release of 3.0.1 (#175) #8

Release of 3.0.1 (#175)

Release of 3.0.1 (#175) #8

Workflow file for this run

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