Merge pull request #83 from PierreBeucher/release-please--branches--m… #24
This file contains 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: Release | |
# Same jobs are used for testing or releasing | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: release PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: novops | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix develop -c make release-tag | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
- run: nix develop -c make release-pr | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |