-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (35 loc) · 1.3 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
name: Release
on:
release:
types: [published]
jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
tag_prefix: ['iota', 'iota-testnet', 'iota2-testnet', 'shimmer', 'shimmer-testnet']
steps:
- name: Check out code into the Go module directory
if: startsWith(github.ref_name, matrix.tag_prefix)
uses: actions/checkout@v4
- name: Find and Replace VERSION
if: startsWith(github.ref_name, matrix.tag_prefix)
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "__VERSION__"
replace: ${{ github.ref_name }}
regex: false
- name: Create node-docker-setup_${{ matrix.tag_prefix }}.tar.gz
if: startsWith(github.ref_name, matrix.tag_prefix)
uses: ihiroky/archive-action@v1
with:
root_dir: ${{ matrix.tag_prefix }}
file_path: node-docker-setup_${{ matrix.tag_prefix }}.tar.gz
- name: Upload node-docker-setup_${{ matrix.tag_prefix }}.tar.gz file
if: startsWith(github.ref_name, matrix.tag_prefix)
uses: Shopify/[email protected]
with:
name: node-docker-setup_${{ github.ref_name }}.tar.gz
path: node-docker-setup_${{ matrix.tag_prefix }}.tar.gz
repo-token: ${{ secrets.GITHUB_TOKEN }}