Skip to content

chore(version): 0.3.0 #4

chore(version): 0.3.0

chore(version): 0.3.0 #4

Workflow file for this run

name: tag
on:
push:
tags:
- "*"
jobs:
publish-github:
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-substituters = 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 -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 }}
publish-crate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: publish
args: --package project-base-directory --token ${{ secrets.CRATES_IO_TOKEN }}