]>
Commit | Line | Data |
---|---|---|
81d78c4e HG |
1 | name: Release |
2 | ||
3 | on: | |
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 | ||
13 | permissions: | |
14 | contents: write | |
15 | ||
16 | jobs: | |
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 |