Skip to content

Commit

Permalink
Update version to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jxpeng98 committed Feb 16, 2024
1 parent 3acc10e commit 3160b48
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:

env:
typst_cv: Typst-CV
typst_cvs: Typst-CV-Single
typst_cl: Typst-CoverLetter


jobs:
build:
name: release
Expand All @@ -18,15 +18,27 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: List CV directory contents
run: ls -l ./CV/

- name: Zip
id: zip
run: |
mkdir ${{ env.typst_cv }}
cp ./CV/typstcv.typ ./CV/typstcv-single.typ ./CV/example_single.typ ./CV/example.typ ${{ env.typst_cv }}
cp ./CV/typstcv.typ ./CV/example.typ ${{ env.typst_cv }}
zip -r ${{ env.typst_cv }}.zip ./${{ env.typst_cv }}
mdfir ${{ env.typst_cl }}
mkdir ${{ env.typst_cvs }}
cp ./CV/typstcv_single.typ ./CV/example_single.typ ${{ env.typst_cvs }}
zip -r ${{ env.typst_cvs }}.zip ./${{ env.typst_cvs }}
mkdir ${{ env.typst_cl }}
cp ./CoverLetter/typstcoverletter.typ ./CoverLetter/example_Coverletter.typ ${{ env.typst_cl }}
zip -r ${{ env.typst_cl }}.zip ./${{ env.typst_cl }}
ls
echo "tag_name=$(git tag --sort version:refname | tail -n 1)" >> $GITHUB_OUTPUT
Expand All @@ -53,6 +65,17 @@ jobs:
asset_name: ${{ env.typst_cv }}-${{ steps.build.outputs.tag_name }}.zip
asset_content_type: application/zip

- name: Upload CV Single zip
id: upload-cv-single-zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ env.typst_cvs }}.zip
asset_name: ${{ env.typst_cvs }}-${{ steps.build.outputs.tag_name }}.zip
asset_content_type: application/zip

- name: Upload Cover Letter zip
id: upload-cl-zip
uses: actions/upload-release-asset@v1
Expand Down Expand Up @@ -82,17 +105,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./CV/typst`cv.typ
asset_path: ./CV/typst_cv.typ
asset_name: typstcv.typ
asset_content_type: text/typst

- name: Upload Cover Letter
id: upload-cl
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./CoverLetter/typstcoverletter.typ
asset_name: typstcoverletter.typ
asset_content_type: text/typst
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./CoverLetter/typstcoverletter.typ
asset_name: typstcoverletter.typ
asset_content_type: text/typst

0 comments on commit 3160b48

Please sign in to comment.