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
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
Wendi Zheng
NJUThesis
Commits
a0299d10
Commit
a0299d10
authored
3 years ago
by
HermitSun
Browse files
Options
Downloads
Patches
Plain Diff
chore: separate workflow to trigger tag event
parent
9c036977
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
+1
-35
1 addition, 35 deletions
.github/workflows/build.yml
.github/workflows/release.yml
+40
-0
40 additions, 0 deletions
.github/workflows/release.yml
with
41 additions
and
35 deletions
.github/workflows/build.yml
+
1
−
35
View file @
a0299d10
...
...
@@ -3,6 +3,7 @@ on:
push
:
branches
:
-
master
pull_request
:
branches
:
-
master
...
...
@@ -29,38 +30,3 @@ 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
:
Set up Git repository
uses
:
actions/checkout@v2
-
name
:
Zip Release Source
run
:
|
zip -r njuthesis.zip . -x ".git/*" ".github/*" ".gitignore"
-
name
:
Download artifact
uses
:
actions/download-artifact@v2
with
:
name
:
PDF_xelatex
-
name
:
Zip CTAN Source
run
:
|
mkdir -p njuthesis/
cp njuthesis.pdf njuthesis/njuthesis.pdf
cp README.md njuthesis/README_ZH_CN.md
cp README_EN.md njuthesis/README.md
cp -r figure/ LICENSE njuthesis.dtx njuthesis/
zip -r njuthesis_ctan.zip njuthesis/
-
uses
:
"
marvinpinto/action-automatic-releases@latest"
with
:
repo_token
:
"
${{
secrets.GITHUB_TOKEN
}}"
prerelease
:
false
files
:
|
njuthesis.pdf
njuthesis.zip
njuthesis_ctan.zip
This diff is collapsed.
Click to expand it.
.github/workflows/release.yml
0 → 100644
+
40
−
0
View file @
a0299d10
name
:
Release LaTeX document
on
:
push
:
tags
:
-
v*
jobs
:
release
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Git repository
uses
:
actions/checkout@v2
-
name
:
Compile to PDF
uses
:
HermitSun/latex-action@v3
with
:
root_file
:
njuthesis.dtx
args
:
'
-bibtex'
-
name
:
Zip Release Source
run
:
|
zip -r njuthesis.zip . -x ".git/*" ".github/*" ".gitignore"
-
name
:
Zip CTAN Source
run
:
|
mkdir -p njuthesis/
cp njuthesis.pdf njuthesis/njuthesis.pdf
cp README.md njuthesis/README_ZH_CN.md
cp README_EN.md njuthesis/README.md
cp -r figure/ LICENSE njuthesis.dtx njuthesis/
zip -r njuthesis_ctan.zip njuthesis/
-
uses
:
"
marvinpinto/action-automatic-releases@latest"
with
:
repo_token
:
"
${{
secrets.GITHUB_TOKEN
}}"
prerelease
:
false
files
:
|
njuthesis.pdf
njuthesis.zip
njuthesis_ctan.zip
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