phpdoc-parser/.github/workflows/release.yml

34 lines
772 B
YAML
Raw Normal View History

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"
2022-03-07 01:03:13 +01:00
uses: actions/checkout@v3
2020-12-12 16:45:28 +01:00
- name: Generate changelog
id: changelog
2022-02-02 03:30:30 +01:00
uses: metcalfc/changelog-generator@v3.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 }}