2020-12-12 16:45:28 +01:00
|
|
|
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
|
|
|
|
|
|
|
|
name: "Create release"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
name: "Deploy"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
|
|
|
uses: "actions/checkout@v2"
|
|
|
|
|
|
|
|
- name: Generate changelog
|
|
|
|
id: changelog
|
2021-04-01 07:28:31 +02:00
|
|
|
uses: metcalfc/changelog-generator@v1.0.0
|
2020-12-12 16:45:28 +01:00
|
|
|
with:
|
2022-01-16 11:53:29 +01:00
|
|
|
myToken: ${{ secrets.PHPSTAN_BOT_TOKEN }}
|
2020-12-12 16:45:28 +01:00
|
|
|
|
|
|
|
- name: "Create release"
|
|
|
|
id: create-release
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
env:
|
2022-01-16 11:53:29 +01:00
|
|
|
GITHUB_TOKEN: ${{ secrets.PHPSTAN_BOT_TOKEN }}
|
2020-12-12 16:45:28 +01:00
|
|
|
with:
|
|
|
|
tag_name: ${{ github.ref }}
|
|
|
|
release_name: ${{ github.ref }}
|
|
|
|
body: ${{ steps.changelog.outputs.changelog }}
|