Skip to content

chore(version): 0.2.0 #1

chore(version): 0.2.0

chore(version): 0.2.0 #1

Workflow file for this run

name: publish to github releases
on:
push:
tags:
- "*"
jobs:
publish-github:
name: publish to github releases
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install nix
uses: cachix/install-nix-action@v15
with:
extra_nix_config: |
access-tokens = github=${{ secrets.GITHUB_TOKEN }}
extra-substituers = https://cache.garnix.io
extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
- name: get version
id: get-version
run: |
VERSION=`git describe --tags $(git rev-list --tags --max-count=1)`
echo ::set-output name=version::"$VERSION"
- name: generate changelog
env:
VERSION: ${{ steps.get-version.outputs.version }}
run: |
nix develop .#ci -c cog changelog --at $VERSION -t full_hash > GITHUB_CHANGELOG.md
- name: generate release
uses: softprops/action-gh-release@v1
with:
body_path: GITHUB_CHANGELOG.md
tag_name: ${{ steps.get-version.outputs.version }}