@@ -50,17 +50,28 @@ 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
- - name : Publish Nightly [S3]
59
- if : github.event_name == 'schedule` || github.event_name == 'workflow_dispatch'
60
-
58
+ publish :
59
+ needs : build
60
+ if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
61
+ runs-on : ubuntu-latest
62
+ steps :
63
+ - name : Download Workflow Artifact [GitHub Actions]
64
+ uses : actions/download-artifact@v2
61
65
with :
62
- aws_key_id : ${{ secrets.AWS_ACCESS_KEY_ID }}
63
- aws_secret_access_key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
64
- aws_bucket : arduino-downloads-prod-beagle
65
- source_dir : ${{ env.BUILD_OUTPUT_DIRECTORY }}/archive/${{ env.EXECUTABLE_NAME }}_${{ runner.OS }}_amd64.zip
66
- destination_dir : arduino-language-server/nightly/
66
+ name : build-artifacts
67
+ path : build-artifacts
68
+
69
+ - name : Publish Nightly [S3]
70
+ uses : docker://plugins/s3
71
+ env :
72
+ PLUGIN_SOURCE : " build-artifacts/*"
73
+ PLUGIN_TARGET : " /arduino-language-server/nightly"
74
+ PLUGIN_STRIP_PREFIX : " build-artifacts/"
75
+ PLUGIN_BUCKET : ${{ secrets.DOWNLOADS_BUCKET }}
76
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
77
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
0 commit comments