e2148a360c
This has been prompted by the following deprecation messages: > Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4.
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Generate release tarball
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: 'Tag to build'
|
|
required: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Generate release tarball (${{ github.event.repository.name }} ${{ github.event.inputs.tag }})
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Set timestamp
|
|
run: echo "timestamp=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ github.event.inputs.tag }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo scripts/install_xrdp_build_dependencies_with_apt.sh min amd64
|
|
|
|
- name: Run make distcheck
|
|
run: |
|
|
./bootstrap
|
|
./configure
|
|
make distcheck
|
|
|
|
- name: Find generated tarball
|
|
id: find_tarball
|
|
run: |
|
|
TARBALL=$(find . -maxdepth 1 -name "*.tar.gz" | head -n 1)
|
|
if [ -z "$TARBALL" ]; then
|
|
echo "Error: No tarball found" >&2
|
|
exit 1
|
|
fi
|
|
echo "tarball=$TARBALL" >> $GITHUB_ENV
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: ${{ github.event.repository.name }}-${{ github.event.inputs.tag }}-${{ env.timestamp }}
|
|
path: "${{ env.tarball }}"
|
|
if-no-files-found: error
|
|
compression-level: 0
|
|
retention-days: 7
|
|
|