From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id E96E63857355; Sun, 3 Sep 2023 13:58:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E96E63857355 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693749522; bh=MjkOBYUmBbuDwKIce/ZgVI0o84eJH7vLKPcJt67eQuM=; h=From:To:Subject:Date:From; b=niXjbHvWVH58iyNlAc/CA3rDnLrSkylSIJyx985KzndZ452vgQviIBozfmXD8Oe3n x8Zu5o6lhJeCZgTg2WRKOoASNzLhxrjpre3y4isqrbkAMpcbLpyp111MBzxvmyro1m uCrzPNlvi+ufQLq36fOFfT6/aSFuTVpEW36A6kuk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jon Turney To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: CI: Also deploy documentation for release tags X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/main X-Git-Oldrev: 352f051cf9c14b1fac47a61f2f6e5a334ca1802f X-Git-Newrev: 24b029ba8ea78cee7d94bc736ff4462eb8889f30 Message-Id: <20230903135842.E96E63857355@sourceware.org> Date: Sun, 3 Sep 2023 13:58:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D24b029ba8ea= 78cee7d94bc736ff4462eb8889f30 commit 24b029ba8ea78cee7d94bc736ff4462eb8889f30 Author: Jon Turney Date: Thu Aug 31 20:21:56 2023 +0100 Cygwin: CI: Also deploy documentation for release tags Diff: --- .github/workflows/cygwin.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index e92054af8..be377bb3b 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -5,6 +5,8 @@ on: # since master is a symbolic reference to main, don't run for both branches-ignore: - 'master' + tags: + - '*' =20 jobs: fedora-build: @@ -57,11 +59,25 @@ jobs: make -C build install make -C build/*/newlib install-info install-man =20 - # deploy documentation preview - - name: Deploy documentation preview + # deploy documentation + - name: Deploy documentation env: SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: | + # pushes to main are deployed as preview + # pushes to cygwin-n.n.n (but not 'cygwin-n.n.n.dev') tags are dep= loyed as stable + # other references are ignored by this step + case "${{ github.ref }}" in + refs/heads/main) + DEST=3D'preview' + ;; + refs/tags/cygwin-[0-9.]*) + DEST=3D'stable' + ;; + *) + exit 0 + ;; + esac # unfuck github fuckery of HOME in a container unset HOME # add the hosts public key to known_hosts @@ -71,8 +87,8 @@ jobs: ssh-agent -a $SSH_AUTH_SOCK > /dev/null ssh-add - <<< "${{ secrets.SSH_KEY }}" # 'make install' doesn't install faq, so instead just deploy from = build directory - scp -pr build/*/winsup/doc/{cygwin-api,cygwin-ug-net,faq} cygwin-a= dmin@cygwin.com:/sourceware/www/sourceware/htdocs/cygwin/doc/preview/ - if: env.HAS_SSH_KEY =3D=3D 'true' && github.ref =3D=3D 'refs/heads/m= ain' + scp -pr build/*/winsup/doc/{cygwin-api,cygwin-ug-net,faq} cygwin-a= dmin@cygwin.com:/sourceware/www/sourceware/htdocs/cygwin/doc/${DEST}/ + if: env.HAS_SSH_KEY =3D=3D 'true' =20 windows-build: runs-on: windows-latest