]> git.ipfire.org Git - thirdparty/dracut.git/blame - .github/workflows/release.yml
ci: automate release generation
[thirdparty/dracut.git] / .github / workflows / release.yml
CommitLineData
81d78c4e
HG
1name: Release
2
3on:
9e1e9245
HG
4 schedule:
5 ## Schedule the job to run on Apr-1, Aug-1, Dec-1
6 - cron: '0 0 1 APR,AUG,DEC *'
81d78c4e
HG
7 workflow_dispatch:
8 inputs:
9 tag:
10 description: "release version number (3 digits)"
11 required: true
12
13permissions:
14 contents: write
15
16jobs:
17 release:
18 runs-on: ubuntu-latest
19 steps:
20 - name: Checkout
21 uses: actions/checkout@v3
22 with:
23 fetch-depth: 0
24
25 - name: Build
26 run: bash ${GITHUB_WORKSPACE}/tools/release.sh ${{ inputs.tag }}
27
28 - name: Release
9e1e9245 29 if: ${{ env.new_version }}
81d78c4e
HG
30 uses: softprops/action-gh-release@v0.1.15
31 with:
9e1e9245
HG
32 tag_name: ${{ env.new_version }}
33 name: dracut-${{ env.new_version }}
81d78c4e 34 body_path: ${{ github.workspace }}/release.md