name: Node.js v24 Archive Keyring (Noble) on: push: branches: - develop env: RELEASE: 'Node.js v24 Archive Keyring' jobs: arm64: name: Node.js v24 Archive Keyring [arm64] runs-on: noble steps: - name: Repository [Clone] uses: actions/checkout@v5 - name: Environment [Prepare] id: environment run: | ARCHITECTURE='arm64' /usr/bin/echo "ARCHITECTURE=${ARCHITECTURE}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'ARCHITECTURE' to '${ARCHITECTURE}'" CODENAME='noble' /usr/bin/echo "CODENAME=${CODENAME}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'CODENAME' to '${CODENAME}'" PACKAGE=$(/usr/bin/grep 'Package:' './root/DEBIAN/control' | /usr/bin/sed --expression='s/Package: //') PACKAGE="${PACKAGE/X/24}" /usr/bin/echo "PACKAGE=${PACKAGE}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'PACKAGE' to '${PACKAGE}'" VERSION=$(/usr/bin/grep 'Version:' './root/DEBIAN/control' | /usr/bin/sed --expression='s/Version: //') /usr/bin/echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'VERSION' to '${VERSION}'" DEB="${PACKAGE}_${VERSION}_${CODENAME}_${ARCHITECTURE}.deb" /usr/bin/echo "DEB=${DEB}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'DEB' to '${DEB}'" - name: SSH Private Key [Prepare] env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} run: | /usr/bin/echo "${SSH_PRIVATE_KEY}" > './id_ed25519' /usr/bin/chmod --quiet '0400' './id_ed25519' - name: Debian Package [Prepare] env: ARCHITECTURE: ${{ steps.environment.outputs.architecture }} VERSION: ${{ steps.environment.outputs.version }} run: | /usr/bin/sed --in-place --expression="s/X/24/" './root/DEBIAN/control' /usr/bin/sed --in-place --expression="s/Architecture:.*/Architecture: ${ARCHITECTURE}/" './root/DEBIAN/control' /usr/bin/sed --in-place --expression='s/node_X.x/node_24.x/' './root/etc/apt/sources.list.d/nodejs.sources' - name: Debian Package [Generate] env: DEB: ${{ steps.environment.outputs.deb }} run: | /usr/bin/dpkg-gen './root' /usr/bin/mv --verbose './root.deb' "${DEB}" /usr/bin/touch "${DEB}.run" - name: Publish Package [Release] uses: https://gitea.com/actions/gitea-release-action@v1 with: prerelease: true name: ${{ env.RELEASEV }} RC v${{ steps.environment.outputs.version }} tag_name: v${{ steps.environment.outputs.version }} files: | ${{ steps.environment.outputs.deb }} amd64: name: Node.js v24 Archive Keyring [amd64] runs-on: noble steps: - name: Repository [Clone] uses: actions/checkout@v5 - name: Environment [Prepare] id: environment run: | ARCHITECTURE='amd64' /usr/bin/echo "ARCHITECTURE=${ARCHITECTURE}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'ARCHITECTURE' to '${ARCHITECTURE}'" CODENAME='noble' /usr/bin/echo "CODENAME=${CODENAME}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'CODENAME' to '${CODENAME}'" PACKAGE=$(/usr/bin/grep 'Package:' './root/DEBIAN/control' | /usr/bin/sed --expression='s/Package: //') PACKAGE="${PACKAGE/X/24}" /usr/bin/echo "PACKAGE=${PACKAGE}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'PACKAGE' to '${PACKAGE}'" VERSION=$(/usr/bin/grep 'Version:' './root/DEBIAN/control' | /usr/bin/sed --expression='s/Version: //') /usr/bin/echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'VERSION' to '${VERSION}'" DEB="${PACKAGE}_${VERSION}_${CODENAME}_${ARCHITECTURE}.deb" /usr/bin/echo "DEB=${DEB}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'DEB' to '${DEB}'" - name: SSH Private Key [Prepare] env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} run: | /usr/bin/echo "${SSH_PRIVATE_KEY}" > './id_ed25519' /usr/bin/chmod --quiet '0400' './id_ed25519' - name: Debian Package [Prepare] env: ARCHITECTURE: ${{ steps.environment.outputs.architecture }} VERSION: ${{ steps.environment.outputs.version }} run: | /usr/bin/sed --in-place --expression="s/X/24/" './root/DEBIAN/control' /usr/bin/sed --in-place --expression="s/Architecture:.*/Architecture: ${ARCHITECTURE}/" './root/DEBIAN/control' /usr/bin/sed --in-place --expression='s/node_X.x/node_24.x/' './root/etc/apt/sources.list.d/nodejs.sources' - name: Debian Package [Generate] env: DEB: ${{ steps.environment.outputs.deb }} run: | /usr/bin/dpkg-gen './root' /usr/bin/mv --verbose './root.deb' "${DEB}" /usr/bin/touch "${DEB}.run" - name: Publish Package [Release] uses: https://gitea.com/actions/gitea-release-action@v1 with: prerelease: true name: ${{ env.RELEASEV }} RC v${{ steps.environment.outputs.version }} tag_name: v${{ steps.environment.outputs.version }} files: | ${{ steps.environment.outputs.deb }}