From 6b9e93011877546dc918d62b9b0ca46e41424014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 12 Dec 2024 12:19:13 +0000 Subject: [PATCH 1/3] github: add an update step before installing texlive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise you run into issues of the upstream has updated packages since the last snapshot. Signed-off-by: Alex Bennée --- .github/workflows/deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2cc39e3..369b5a5 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -10,6 +10,7 @@ jobs: - uses: actions/checkout@v4 - name: Install Tools run: | + sudo apt update sudo apt install texlive-full - name: Build Docs From e91882bcd80a681122a0f3742f5f589a7ed814a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 12 Dec 2024 11:43:41 +0000 Subject: [PATCH 2/3] github: use a different release/publish pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Having a draft means that the final asset won't be visible outside the project which is what we want. This entails tagging a release each time we run the steps. Signed-off-by: Alex Bennée --- .github/workflows/deploy.yaml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 369b5a5..adfcfe5 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -18,11 +18,22 @@ jobs: make local-all echo ${{ github.sha }} > Release.txt - - name: Create a Draft Release - uses: softprops/action-gh-release@v2 + - name: Create Draft Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - draft: true - name: working-draft - files: | - Release.txt - virtio-v1.4-wd01.pdf + tag_name: virio-msg-draft-v${{ github.run_number }} # Or a more meaningful tag + release_name: Draft ${{ github.run_number }} + draft: false + prerelease: false + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: virtio-v1.4-wd01.pdf + asset_name: virtio-v1.4-wd01.pdf + asset_content_type: application/pdf From 0dff8819047587ca621b02e526db6799064d26da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Wed, 13 Nov 2024 17:09:21 +0000 Subject: [PATCH 3/3] github: only run the test phase on PRs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The release is done on pushes. Signed-off-by: Alex Bennée --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 180fd17..2450fd3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,6 @@ name: CI on: - push: pull_request: jobs: