-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (73 loc) · 2.18 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Release
on:
push:
tags:
- v*
jobs:
build:
uses: ./.github/workflows/build.yml
deploy:
needs: [build]
runs-on: ubuntu-22.04
steps:
- name: Setup folder structure
run: |
mkdir -p english/data english/output
mkdir -p spanish/data spanish/output
- name: Retrieve data artifact
uses: actions/download-artifact@v4
with:
name: english-data
path: english/data
- name: Retrieve data artifact
uses: actions/download-artifact@v4
with:
name: spanish-data
path: spanish/data
- name: Display structure of data files
run: |
ls -R english/data
- name: Display structure of data files
run: |
ls -R spanish/data
- name: Retrieve formatted artifacts
uses: actions/download-artifact@v4
with:
pattern: english-output-*
merge-multiple: true
path: english/output
- name: Display structure of output files
run: ls -R english/output
- name: zip english-data
uses: montudor/action-zip@v1
with:
args: zip -qq -r english-data.zip . -i english/data/*
- name: zip english-output
uses: montudor/action-zip@v1
with:
args: zip -qq -r english-output.zip . -i english/output/*
- name: Retrieve formatted artifacts
uses: actions/download-artifact@v4
with:
pattern: spanish-output-*
merge-multiple: true
path: spanish/output
- name: Display structure of output files
run: ls -R spanish/output
- name: zip spanish-data
uses: montudor/action-zip@v1
with:
args: zip -qq -r spanish-data.zip . -i spanish/data/*
- name: zip spanish-output
uses: montudor/action-zip@v1
with:
args: zip -qq -r spanish-output.zip . -i spanish/output/*
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: ./.github/workflow_data/release.md
files: |
english-data.zip
english-output.zip
spanish-data.zip
spanish-output.zip