Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit e3c5eff

Browse files
authored
Update CI/CD
1 parent 9384c92 commit e3c5eff

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

.github/workflows/latex.yml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,20 @@ jobs:
1919
with:
2020
root_file: thesis.tex
2121
args: -lualatex -shell-escape -latexoption=-file-line-error -latexoption=-interaction=nonstopmode
22-
- name: versioning
23-
id: versioning
24-
uses: codacy/git-version@2.5.4
25-
with:
26-
release-branch: main
27-
dev-branch: development
28-
minor-identifier: 'minor:'
29-
major-identifier: 'major:'
30-
- name: release
31-
id: github-release
32-
uses: actions/create-release@v1
22+
- name: Determine version number
23+
uses: anothrNick/github-tag-action@master
24+
id: version
3325
env:
3426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
WITH_V: true
28+
RELEASE_BRANCHES: main
29+
DEFAULT_BUMP: ${{ github.ref == 'refs/heads/main' && 'minor' || 'patch' }}
30+
DRY_RUN: true # We want to manually create the release.
31+
- name: Release and tag
32+
uses: "marvinpinto/action-automatic-releases@latest"
3533
with:
36-
tag_name: ${{ steps.versioning.outputs.version }}
37-
release_name: Release ${{ steps.versioning.outputs.version }}
34+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
35+
automatic_release_tag: "${{ steps.version.outputs.new_tag }}"
3836
prerelease: ${{ github.ref == 'refs/heads/main' && 'false' || 'true' }}
39-
- name: upload assets
40-
uses: actions/upload-release-asset@v1
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
with:
44-
upload_url: ${{ steps.github-release.outputs.upload_url }}
45-
asset_path: thesis.pdf
46-
asset_name: thesis.pdf
47-
asset_content_type: application/pdf
37+
files: |
38+
thesis.pdf

0 commit comments

Comments
 (0)