File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -50,18 +50,29 @@ jobs:
50
50
- name : Upload Workflow Artifact [GitHub Actions]
51
51
uses : actions/upload-artifact@v2
52
52
with :
53
- name : binary_${{ runner.OS }}
53
+ name : build-artifacts
54
54
# this makes the artifact a .zip of the .zip archive, which is currently necessary to preserve the executable file permissions
55
55
# see: https://github.com/actions/upload-artifact/issues/38
56
56
path : ${{ env.BUILD_OUTPUT_DIRECTORY }}/archive/${{ env.EXECUTABLE_NAME }}_${{ runner.OS }}_amd64.zip
57
57
58
+ publish :
59
+ needs : build
60
+ if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
61
+ runs-on : ubuntu-latest
62
+ uses : docker://plugins/s3
63
+ steps :
64
+ - name : Download [GitHub Actions]
65
+ uses : actions/download-artifact@v2
66
+ with :
67
+ name : build-artifacts
68
+ path : build-artifacts
69
+
58
70
- name : Publish Nightly [S3]
59
71
if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
60
- uses : docker://plugins/s3
61
72
env :
62
- PLUGIN_SOURCE : " ${{ env.BUILD_OUTPUT_DIRECTORY }}/archive /*"
73
+ PLUGIN_SOURCE : " build-artifacts /*"
63
74
PLUGIN_TARGET : " /arduino-language-server/nightly"
64
- PLUGIN_STRIP_PREFIX : " ${{ env.BUILD_OUTPUT_DIRECTORY }}/archive /"
75
+ PLUGIN_STRIP_PREFIX : " $build-artifacts /"
65
76
PLUGIN_BUCKET : ${{ secrets.DOWNLOADS_BUCKET }}
66
77
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
67
78
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
You can’t perform that action at this time.
0 commit comments