diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..fab86d3 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,25 @@ +name: Release +on: + push: + tags: + - v* +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Preparing release body + run: | + touch CHANGELOG.md + echo '### Changelog' >> CHANGELOG.md + echo '------' >> CHANGELOG.md + cat CHANGELOG.md + - name: Create Release + uses: actions/create-release@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Fontana ${{ github.ref }} + body_path: CHANGELOG.md