-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (42 loc) · 1.6 KB
/
release-please.yml
File metadata and controls
45 lines (42 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_ACCESS_TOKEN }}
- if: ${{ steps.release.outputs.release_created }} || ${{ steps.release.outputs.themes--release_created }}
uses: actions/checkout@v4
with:
fetch-depth: 0
- if: ${{ steps.release.outputs.release_created }}
name: Build and upload NixKraken sources
run: |
archive_name="nixkraken-${{ steps.release.outputs.version }}.tar.gz"
tar czf $archive_name gitkraken modules pkgs themes LICENSE README.md flake.lock flake.nix module.nix
gh release upload ${{ steps.release.outputs.tag_name }} $archive_name
- if: ${{ steps.release.outputs.themes--release_created }}
uses: wimpysworld/nothing-but-nix@main
with:
hatchet-protocol: holster
- if: ${{ steps.release.outputs.themes--release_created }}
uses: DeterminateSystems/nix-installer-action@main
- if: ${{ steps.release.outputs.themes--release_created }}
name: Build and upload themes
run: |
nix build '.#gitkraken-themes'
archive_name="gitkraken-themes-${{ steps.release.outputs.themes--version }}.tar.gz"
tar czf $archive_name -C result .
gh release upload ${{ steps.release.outputs.themes--tag_name }} $archive_name