From 74d91efb55a72b4cd53da22ffaab12484eba111a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kub=C3=A1t?= Date: Tue, 12 Dec 2023 15:57:43 +0100 Subject: [PATCH 1/6] Create publish.yml --- .github/workflows/publish.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d94d98d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,35 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v1 + - name: Compile document.tex + uses: dante-ev/latex-action@master + with: + root_file: main.tex + # - name: Publish + # uses: dev-build-deploy/release-me@v0.14.0 + # with: + # # Path to the Release configuration file, defaults to .github/release.yml + # config: # optional, default is .github/release.yml + # # Multiline list of artifact names, uploaded as part of the current workflow run, to upload as a GitHub Release asset + # artifacts: # optional + # # Multiline list of files (paths) to upload as a GitHub Release asset + # files: # optional + # # Versioning scheme to apply + # versioning: calve + From d2f5bfcb0c0e26a6d2950509205bd4cf09ca1158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kub=C3=A1t?= Date: Tue, 12 Dec 2023 16:06:48 +0100 Subject: [PATCH 2/6] test --- .github/release.yml | 0 .github/workflows/publish.yml | 27 +++++++++++++-------------- 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d94d98d..da6f318 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,9 +6,9 @@ name: CI on: # Triggers the workflow on push or pull request events but only for the "main" branch push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -21,15 +21,14 @@ jobs: uses: dante-ev/latex-action@master with: root_file: main.tex - # - name: Publish - # uses: dev-build-deploy/release-me@v0.14.0 - # with: - # # Path to the Release configuration file, defaults to .github/release.yml - # config: # optional, default is .github/release.yml - # # Multiline list of artifact names, uploaded as part of the current workflow run, to upload as a GitHub Release asset - # artifacts: # optional - # # Multiline list of files (paths) to upload as a GitHub Release asset - # files: # optional - # # Versioning scheme to apply - # versioning: calve - + - name: Publish + uses: dev-build-deploy/release-me@v0.14.0 + with: + token: ${{ github.token }} + draft: true + # Multiline list of artifact names, uploaded as part of the current workflow run, to upload as a GitHub Release asset + artifacts: # optional + # Multiline list of files (paths) to upload as a GitHub Release asset + files: ./main.pdf + # Versioning scheme to apply + versioning: calver From 246fbfc8b4b2174e5b34914cb8ecc03f251e2230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kub=C3=A1t?= Date: Tue, 12 Dec 2023 16:11:01 +0100 Subject: [PATCH 3/6] speed up --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index da6f318..336b9bb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,9 +18,10 @@ jobs: - name: Set up Git repository uses: actions/checkout@v1 - name: Compile document.tex - uses: dante-ev/latex-action@master + uses: xu-cheng/latex-action@v3 with: - root_file: main.tex + root_file: | + main.tex - name: Publish uses: dev-build-deploy/release-me@v0.14.0 with: From 7467c28b07cde518103b023dfd21b5afed2dd203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kub=C3=A1t?= Date: Tue, 12 Dec 2023 16:13:53 +0100 Subject: [PATCH 4/6] test --- .github/workflows/publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 336b9bb..0e60993 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,8 +7,6 @@ on: # Triggers the workflow on push or pull request events but only for the "main" branch push: branches: ["main"] - pull_request: - branches: ["main"] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: From c16b36b45616aa59e4fa52933d4cbf57d79f78e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kub=C3=A1t?= Date: Tue, 12 Dec 2023 16:14:01 +0100 Subject: [PATCH 5/6] test --- .github/workflows/publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0e60993..1efd3ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,6 @@ jobs: uses: dev-build-deploy/release-me@v0.14.0 with: token: ${{ github.token }} - draft: true # Multiline list of artifact names, uploaded as part of the current workflow run, to upload as a GitHub Release asset artifacts: # optional # Multiline list of files (paths) to upload as a GitHub Release asset From a3ab0b75dc19575962d5eeebe0db689ec9cc9003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kub=C3=A1t?= Date: Tue, 12 Dec 2023 16:14:24 +0100 Subject: [PATCH 6/6] test --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1efd3ef..68f9d1f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,7 @@ jobs: # Multiline list of artifact names, uploaded as part of the current workflow run, to upload as a GitHub Release asset artifacts: # optional # Multiline list of files (paths) to upload as a GitHub Release asset - files: ./main.pdf + files: | + main.pdf # Versioning scheme to apply versioning: calver