Skip to content

add GH_TOKEN

add GH_TOKEN #5

Workflow file for this run

name: release
on:
push:
tags: [v*]
permissions:
contents: read
jobs:
github-release:
runs-on: ubuntu-latest
timeout-minutes: 5
environment:
name: publish
url: https://github.com/NewFuture/NKThesis/releases/tag/${{ github.ref_name }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
# install dependencies
- name: install
run: ./init.sh
- name: build tex
run: ./build.cmd
- name: upload pdf to release
run: 'gh release upload ${{ github.ref_name }} main.pdf#NKThesis.pdf'
env:
GH_TOKEN: ${{ github.token }}