Skip to content

Commit

Permalink
タグを日時に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
HidetoNiwa committed Jan 31, 2020
1 parent 39f7288 commit 25c60dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/latex/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ platex ./0_main/main.tex

dvipdfmx -f ptex-ipa.map main

timedatectl set-timezone Asia/Tokyo

today=`date "+%Y%m%d%H%M%S"`

# create release
res=`curl -H "Authorization: token $GITHUB_TOKEN" -X POST https://api.github.com/repos/$GITHUB_REPOSITORY/releases \
-d "
Expand All @@ -25,6 +29,6 @@ res=`curl -H "Authorization: token $GITHUB_TOKEN" -X POST https://api.github.com
rel_id=`echo ${res} | python3 -c 'import json,sys;print(json.load(sys.stdin)["id"])'`

# upload built pdf
curl -H "Authorization: token $GITHUB_TOKEN" -X POST https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/${rel_id}/assets?name=main.pdf\
curl -H "Authorization: token $GITHUB_TOKEN" -X POST https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/${today}/assets?name=main.pdf\
--header 'Content-Type: application/pdf'\
--upload-file main.pdf

0 comments on commit 25c60dd

Please sign in to comment.