-
Notifications
You must be signed in to change notification settings - Fork 0
166 lines (163 loc) · 7.32 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
name: Zip Files
on:
push:
branches:
- main
jobs:
zip-files:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: zip
uses: papeloto/action-zip@v1
with:
files: 00006382/
dest: 00006382.zip
- name: zip
uses: papeloto/action-zip@v1
with:
files: 12017607/
dest: 12017607.zip
- name: zip
uses: papeloto/action-zip@v1
with:
files: books/
dest: books.zip
- name: zip
uses: papeloto/action-zip@v1
with:
files: documents/
dest: documents.zip
- name: zip
uses: papeloto/action-zip@v1
with:
files: graphics/
dest: graphics.zip
- name: zip
uses: papeloto/action-zip@v1
with:
files: letter1/
dest: letter1.zip
- name: zip
uses: papeloto/action-zip@v1
with:
files: letter2/
dest: letter2.zip
- name: zip
uses: papeloto/action-zip@v1
with:
files: record_groups/
dest: record_groups.zip
- name: zip
uses: papeloto/action-zip@v1
with:
files: 00006382/ 12017607/ documents/ letter1/ letter2/
recursive: false
dest: training.zip
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S %Z')"
- name: Create tag name from date
id: tagdate
run: echo "::set-output name=tagdate::$(date +'%Y-%m-%d_%H-%M-%S_%Z')"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tagdate.outputs.tagdate }}
release_name: ${{ steps.date.outputs.date }}
draft: false
prerelease: false
- name: Upload books
id: upload-books
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: books.zip
asset_name: books.zip
asset_content_type: application/zip
- name: Upload 00006382
id: upload-00006382
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: 00006382.zip
asset_name: 00006382.zip
asset_content_type: application/zip
- name: Upload 12017607
id: upload-12017607
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: 12017607.zip
asset_name: 12017607.zip
asset_content_type: application/zip
- name: Upload documents
id: upload-documents
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: documents.zip
asset_name: documents.zip
asset_content_type: application/zip
- name: Upload graphics
id: upload-graphics
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: graphics.zip
asset_name: graphics.zip
asset_content_type: application/zip
- name: Upload letter1
id: upload-letter1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: letter1.zip
asset_name: letter1.zip
asset_content_type: application/zip
- name: Upload letter2
id: upload-letter2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: letter2.zip
asset_name: letter2.zip
asset_content_type: application/zip
- name: Upload record_groups
id: upload-record_groups
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: record_groups.zip
asset_name: record_groups.zip
asset_content_type: application/zip
- name: Upload training
id: upload-training
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: training.zip
asset_name: training.zip
asset_content_type: application/zip