This repository was archived by the owner on Jan 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (59 loc) · 1.51 KB
/
release.yml
File metadata and controls
69 lines (59 loc) · 1.51 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Release
on:
workflow_run:
workflows: ["Lint Commit Messages"]
branches:
- main
- beta
types:
- completed
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
on-success:
name: Release
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.PACKAGES_TOKEN }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Set up Go 1.19
uses: actions/setup-go@v5
with:
go-version: 1.19
- name: Run Tests
run: |
make test
- name: Build the artifacts
run: |
make build
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.PACKAGES_TOKEN }}
- name: Setup helm
uses: azure/setup-helm@v3
with:
version: "v3.11.1"
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.PACKAGES_TOKEN }}
run: |-
#!/bin/bash
set -e
npm install @semantic-release/exec @semantic-release/git semantic-release-helm3 -D
npx -c semantic-release