Merge pull request #290 from cornservant/master #150
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tag version | |
| concurrency: tag | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| main: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: cachix/install-nix-action@master | |
| with: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/checkout@v3 | |
| name: Checkout | |
| - run: | | |
| echo -n "nh_version=v" >> "$GITHUB_ENV" | |
| nix run nixpkgs#fq -- -r ".package.version" Cargo.toml >> "$GITHUB_ENV" | |
| cat "$GITHUB_ENV" | |
| name: Read version | |
| - name: Tag | |
| run: | | |
| set -x | |
| git tag $nh_version | |
| git push --tags || : |