-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (40 loc) · 1.11 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 tag
on:
push:
tags:
- '*'
jobs:
build:
name: Build node
runs-on: [self-hosted, builder]
steps:
- uses: actions/checkout@v4
- name: Build parachain node & artifacts
run: just build-container-local
release:
name: Create GH Release
needs: build
runs-on: [self-hosted, builder]
steps:
- name: Build collator artifacts
run: just release-artifacts
- name: Build full-node artifacts
run: just rol=full release-artifacts
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
release/*
container:
name: Containerize & Publish
needs: build
runs-on: [self-hosted, builder]
steps:
- name: Login to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | podman login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Publish image
run: |
podman push ghcr.io/virto-network/virto:$(just version)
podman push ghcr.io/virto-network/virto:latest