blob: 4347d69e47124e6d2e7e8fbdac2cb6198db76325 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
name: Release
on:
schedule:
## Schedule the job to run on Apr-1, Aug-1, Dec-1
- cron: '0 0 1 APR,AUG,DEC *'
workflow_dispatch:
inputs:
tag:
description: "release version number (3 digits)"
required: true
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt -y update
sudo apt -y install asciidoc
- name: Build
run: bash ${GITHUB_WORKSPACE}/tools/release.sh ${{ inputs.tag }}
- name: Release
if: ${{ env.new_version }}
uses: softprops/action-gh-release@v2.0.6
with:
tag_name: ${{ env.new_version }}
name: dracut-${{ env.new_version }}
body_path: ${{ github.workspace }}/release.md
|