forked from sladkoff/resume
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.09 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
on:
push:
tags:
- "*"
name: Upload Release Asset
env:
RESUME_FILE_NAME: duc_nguyen_resume
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Remove swag line
run: sed -i '1d' RESUME.md
- name: Build PDF from Markdown
uses: BaileyJM02/[email protected]
with:
input_path: RESUME.md
output_dir: out
- name: Rename pdf
run: cp out/RESUME.pdf ./duc_nguyen_resume.pdf
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
files: |
duc_nguyen_resume.pdf