From 815e3b582a1d689dfde9fdca3f6aa1825d870b90 Mon Sep 17 00:00:00 2001 From: lukas-heilgenbrunner Date: Mon, 28 Oct 2024 16:05:52 +0100 Subject: [PATCH] upload build artifacts and latex action only on workflow dispatch --- .github/workflows/build.yml | 7 ++----- .github/workflows/buildtypst.yml | 5 +++++ .gitignore | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .gitignore diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7281086..e1657b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,7 @@ name: Build LaTeX Document on: - push: - branches: - - master # This will run the action when you push to the main branch - pull_request: + workflow_dispatch: jobs: build: @@ -32,4 +29,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: compiled-latex - path: src/main.pdf \ No newline at end of file + path: src/main.pdf diff --git a/.github/workflows/buildtypst.yml b/.github/workflows/buildtypst.yml index 11b32ee..5286198 100644 --- a/.github/workflows/buildtypst.yml +++ b/.github/workflows/buildtypst.yml @@ -11,3 +11,8 @@ jobs: uses: lvignoli/typst-action@main with: source_file: typstalt/main.typ + - name: Upload PDF file + uses: actions/upload-artifact@v3 + with: + name: PDF + path: typstalt/main.pdf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a136337 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pdf