File tree 3 files changed +32
-5
lines changed
3 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,37 @@ inputs:
7
7
repo_token :
8
8
required : true
9
9
description : " Github repository personal access token"
10
+ access_key :
11
+ required : true
12
+ description : " Digital Ocean spaces access key"
13
+ secret_key :
14
+ required : true
15
+ description : " Digital Ocean spaces secret key"
16
+ space_name :
17
+ required : true
18
+ description : " Digital Ocean spaces name"
19
+ space_region :
20
+ required : true
21
+ description : " Digital Ocean spaces region"
22
+ tag :
23
+ description : " The tag version of the release"
10
24
runs :
11
25
using : " composite"
12
26
steps :
13
27
- name : Download all workflow artifacts
14
28
uses : actions/download-artifact@v3
29
+ - uses : BetaHuhn/do-spaces-action@v2
30
+ with :
31
+ access_key : ${{ inputs.access_key}}
32
+ secret_key : ${{ inputs.secret_key }}
33
+ space_name : ${{ inputs.space_name }}
34
+ space_region : ${{ inputs.space_region }}
35
+ source : artifacts
36
+ out_dir : " releases_${{ inputs.tag }}"
15
37
- name : " ✏️ Upload imgs and release"
16
38
uses : " marvinpinto/action-automatic-releases@latest"
17
39
with :
18
40
repo_token : " ${{ inputs.repo_token }}"
19
41
prerelease : ${{ inputs.pre-release }}
20
- files : |
21
- artifacts/*
42
+ # files: |
43
+ # artifacts/*
Original file line number Diff line number Diff line change @@ -67,18 +67,23 @@ jobs:
67
67
balena_device : ${{ matrix.image }}
68
68
tag : ${{ needs.balena-deploy.outputs.github_tag }}
69
69
70
- github-release :
70
+ github-images- release :
71
71
runs-on : ubuntu-latest
72
72
needs : [balena-deploy, balena-build-images]
73
73
steps :
74
74
- name : Checkout
75
75
uses : actions/checkout@v2
76
76
77
- - name : Create Github pre- release
77
+ - name : Create Github release and upload images
78
78
uses : ./.github/actions/release-images
79
79
with :
80
80
pre-release : false
81
81
repo_token : " ${{ secrets.PAT }}"
82
+ access_key : ${{ secrets.ACCESS_KEY}}
83
+ secret_key : ${{ secrets.SECRET_KEY }}
84
+ space_name : ${{ secrets.SPACE_NAME }}
85
+ space_region : ${{ secrets.SPACE_REGION }}
86
+ tag : ${{ needs.balena-deploy.outputs.github_tag }}
82
87
83
88
# TODO: Download and inject content into the image
84
89
# - name: Mount Image
Original file line number Diff line number Diff line change 1
1
name : " Earth Defender's Toolkit Offline"
2
2
type : " sw.application"
3
- version : 0.4.5
3
+ version : 0.4.6
4
4
description : " A low-energy device that creates an access-point serving applications, bridging them and exposing curated content offline.
5
5
Software stack and content are automatically updated while online, and can be updated offline."
6
6
assets :
You can’t perform that action at this time.
0 commit comments