Skip to content

Commit

Permalink
add release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
NewFuture committed May 11, 2024
1 parent af90312 commit a4c0f7d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
releasename: 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
needs: [publish-docker, publish-pypi, build-binary]
steps:
- uses: actions/checkout@v4

# install dependencies
- name: install
run: ./init.sh

- name: build
run: ./build.cmd

- name: upload to release
run: 'gh release upload ${{github.event.release.tag_name}} main.pdf#NKThesis.pdf'

0 comments on commit a4c0f7d

Please sign in to comment.