Skip to content

Create release on tag push (#46) #29

Create release on tag push (#46)

Create release on tag push (#46) #29

Workflow file for this run

# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
name: Build and Release thesis
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build_release_thesis:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
lfs: true
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Build Thesis
run: nix -Lv build .#default
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: Version ${{ github.ref_name }}
draft: false
prerelease: false
files: |
./result/thesis.pdf