Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5cb8106

Browse files
committedNov 20, 2020
add "release on download servers" step (just like in the arduino-cli)
comment github release for testing purposes only
1 parent fa409dd commit 5cb8106

File tree

1 file changed

+28
-17
lines changed

1 file changed

+28
-17
lines changed
 

‎.github/workflows/release.yml

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -351,21 +351,32 @@ jobs:
351351
cat ArduinoCreateAgent-osx/*.tar | tar -xvf - -i -C release/
352352
mv -v ArduinoCreateAgent-windows/* release/
353353
354-
- name: Create Github Release
355-
uses: actions/create-release@v1
354+
# - name: Create Github Release
355+
# uses: actions/create-release@v1
356+
# env:
357+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
358+
# with:
359+
# tag_name: ${{ github.ref }}
360+
# release_name: ${{ github.ref }}
361+
# body: "THIS IS A TEST RELEASE"
362+
# draft: false
363+
# prerelease: ${{ steps.prerelease.outputs.IS_PRE }}
364+
365+
# - name: Upload release files on Github
366+
# uses: svenstaro/upload-release-action@v2
367+
# with:
368+
# repo_token: ${{ secrets.GITHUB_TOKEN }}
369+
# tag: ${{ github.ref }}
370+
# file_glob: true # If set to true, the file argument can be a glob pattern
371+
# file: release/*
372+
373+
- name: Upload release files on Arduino downloads servers
374+
uses: docker://plugins/s3
356375
env:
357-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
358-
with:
359-
tag_name: ${{ github.ref }}
360-
release_name: ${{ github.ref }}
361-
body: "THIS IS A TEST RELEASE"
362-
draft: false
363-
prerelease: ${{ steps.prerelease.outputs.IS_PRE }}
364-
365-
- name: Upload release files on Github
366-
uses: svenstaro/upload-release-action@v2
367-
with:
368-
repo_token: ${{ secrets.GITHUB_TOKEN }}
369-
tag: ${{ github.ref }}
370-
file_glob: true # If set to true, the file argument can be a glob pattern
371-
file: release/*
376+
PLUGIN_SOURCE: "release/*"
377+
PLUGIN_TARGET: "/tmp/CreateBridge/staging/"
378+
PLUGIN_STRIP_PREFIX: "release/"
379+
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
380+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
381+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
382+
if: steps.prerelease.outputs.IS_PRE != 'true'

0 commit comments

Comments
 (0)
Please sign in to comment.