Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NJUThesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NJU LUG
NJU LaTeX Templates
NJUThesis
Commits
8975a52e
Commit
8975a52e
authored
3 years ago
by
Lin Yinfeng
Committed by
Yichen Zhao
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
feat: 在 actions 中使用 artifact 创建 release
parent
05cae37a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/build.yml
+17
-4
17 additions, 4 deletions
.github/workflows/build.yml
.github/workflows/release.yml
+0
-32
0 additions, 32 deletions
.github/workflows/release.yml
with
17 additions
and
36 deletions
.github/workflows/build.yml
+
17
−
4
View file @
8975a52e
name
:
Build LaTeX document
on
:
push
:
branches
:
-
master
tags
:
-
"
!v*"
pull_request
:
jobs
:
...
...
@@ -29,3 +25,20 @@ jobs:
with
:
name
:
PDF_${{ matrix.latex }}
path
:
njuthesis.pdf
release
:
needs
:
build_latex
runs-on
:
ubuntu-latest
if
:
startsWith(github.ref, 'refs/tags/v')
steps
:
-
name
:
Download artifact
uses
:
actions/download-artifact@v2
with
:
name
:
PDF_xelatex
-
uses
:
"
marvinpinto/action-automatic-releases@latest"
with
:
repo_token
:
"
${{
secrets.GITHUB_TOKEN
}}"
prerelease
:
false
files
:
|
njuthesis.pdf
This diff is collapsed.
Click to expand it.
.github/workflows/release.yml
deleted
100644 → 0
+
0
−
32
View file @
05cae37a
---
name
:
"
tagged-release"
on
:
push
:
tags
:
-
"
v*"
jobs
:
tagged-release
:
name
:
"
Tagged
Release"
runs-on
:
"
ubuntu-latest"
strategy
:
matrix
:
latex
:
[
xelatex
]
steps
:
-
name
:
Set up Git repository
uses
:
actions/checkout@v2
-
name
:
Compile to PDF
uses
:
HermitSun/latex-action@v3
with
:
root_file
:
njuthesis.tex
latexmk_use_${{ matrix.latex }}
:
true
args
:
'
-bibtex'
-
uses
:
"
marvinpinto/action-automatic-releases@latest"
with
:
repo_token
:
"
${{
secrets.GITHUB_TOKEN
}}"
prerelease
:
false
files
:
|
njuthesis.pdf
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment