From b462e5041ce0430dc92092011e67d4c4d65a0021 Mon Sep 17 00:00:00 2001 From: Christian Meesters Date: Wed, 25 Sep 2024 21:31:50 +0200 Subject: [PATCH] gnarf: trying with outdated release asset --- .github/workflows/release-please.yml | 33 ++++++++++++++++++---------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 9bf1f43..5cf7276 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -33,19 +33,28 @@ jobs: ./render --master-tex Snakemake_HPC_User_Creator_Combi.tex \ --configfile config/config_for_github.yaml ./render --master-tex Snakemake_HPC_Admins.tex \ - --configfile config/config_for_github.yaml - - name: Upload Release Artifacts - if: ${{ steps.release.outputs.release_created }} - uses: actions/upload-artifact@v4 + --configfile config/config_for_github.yaml; + zip slides slides/*pdf + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: Slides - path: | - slides/Snakemake_HPC_Creators.pdf; - slides/Snakemake_HPC_Users.pdf; - slides/Snakemake_HPC_User_Creator_Combi.pdf; - slides/Snakemake_HPC_Admins.pdf; - - + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./slides.zip + asset_name: slides.zip + asset_content_type: slide/zip + # - name: Upload Release Artifacts + #if: ${{ steps.release.outputs.release_created }} + #uses: actions/upload-artifact@v4 + #with: + #name: Slides + #path: | + # slides/Snakemake_HPC_Creators.pdf; + # slides/Snakemake_HPC_Users.pdf; + # slides/Snakemake_HPC_User_Creator_Combi.pdf; + # slides/Snakemake_HPC_Admins.pdf; release-please: runs-on: ubuntu-latest