Skip to content

Commit

Permalink
new GH release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinVerges committed Jul 26, 2022
1 parent 4601672 commit 40fbe5a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/create-firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,21 @@ jobs:
name: boot_app0.bin
path: |
~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin
- name: Upload to S3
run: |
echo "host_base = s3.womolin.de" > ~/.s3cfg
echo "host_bucket = s3.womolin.de" >> ~/.s3cfg
echo "bucket_location = de-fra" >> ~/.s3cfg
echo "use_https = True" >> ~/.s3cfg
echo "access_key = ${{ secrets.S3_ACCESS_KEY }}" >> ~/.s3cfg
echo "secret_key = ${{ secrets.S3_SECRET_KEY }}" >> ~/.s3cfg
echo "signature_v2 = False" >> ~/.s3cfg
sudo apt -y update
sudo apt -y install s3cmd
s3cmd put ${{ github.workspace }}/.pio/build/wemos_d1_mini32/firmware.bin s3://webinstaller/gaslevel-latest/
s3cmd put ${{ github.workspace }}/.pio/build/wemos_d1_mini32/littlefs.bin s3://webinstaller/gaslevel-latest/
s3cmd put ${{ github.workspace }}/.pio/build/wemos_d1_mini32/partitions.bin s3://webinstaller/gaslevel-latest/
s3cmd put ~/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_80m.bin s3://webinstaller/gaslevel-latest/
s3cmd put ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin s3://webinstaller/gaslevel-latest/
18 changes: 17 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
# produces ~/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_80m.bin
# produces ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin


- name: 'Upload firmware Artifact'
uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -71,6 +70,23 @@ jobs:
path: |
~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin
- name: Upload to S3
run: |
echo "host_base = s3.womolin.de" > ~/.s3cfg
echo "host_bucket = s3.womolin.de" >> ~/.s3cfg
echo "bucket_location = de-fra" >> ~/.s3cfg
echo "use_https = True" >> ~/.s3cfg
echo "access_key = ${{ secrets.S3_ACCESS_KEY }}" >> ~/.s3cfg
echo "secret_key = ${{ secrets.S3_SECRET_KEY }}" >> ~/.s3cfg
echo "signature_v2 = False" >> ~/.s3cfg
sudo apt -y update
sudo apt -y install s3cmd
s3cmd put ${{ github.workspace }}/.pio/build/wemos_d1_mini32/firmware.bin s3://webinstaller/gaslevel-release/
s3cmd put ${{ github.workspace }}/.pio/build/wemos_d1_mini32/littlefs.bin s3://webinstaller/gaslevel-release/
s3cmd put ${{ github.workspace }}/.pio/build/wemos_d1_mini32/partitions.bin s3://webinstaller/gaslevel-release/
s3cmd put ~/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_80m.bin s3://webinstaller/gaslevel-release/
s3cmd put ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin s3://webinstaller/gaslevel-release/
- name: 'Create Release'
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 40fbe5a

Please sign in to comment.