-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (46 loc) · 1.45 KB
/
release.yml
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
46
name: release
on:
push:
branches: [main, beta]
jobs:
check:
uses: ./.github/workflows/check.yml
release:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'recap-utr' }}
needs: check
permissions:
contents: write
outputs:
version: ${{ steps.semanticrelease.outputs.version }}
released: ${{ steps.semanticrelease.outputs.released }}
git-head: ${{ steps.semanticrelease.outputs.git-head }}
environment:
name: release
url: https://github.com/wi2trier/cbrkit/releases/tag/${{ steps.semanticrelease.outputs.git-tag }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: cihelper/action-semanticrelease-npm@v1
id: semanticrelease
deploy-docker:
runs-on: ubuntu-latest
needs: release
if: ${{ needs.release.outputs.released == 'true' }}
permissions:
contents: read
packages: write
environment:
name: release
url: https://ghcr.io/recap-utr/arguemapper
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.release.outputs.git-head }}
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: nix run .#docker-manifest --impure
env:
VERSION: ${{ needs.release.outputs.version }}
GH_TOKEN: ${{ github.token }}