Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
melkati authored Nov 20, 2021
1 parent c20ff38 commit 2831e58
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,24 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
name: ${{ github.event.repository.name }}-${{ steps.get_version.outputs.VERSION }}-${{ matrix.environment }}
files: .pio/build/${{ matrix.environment }}/output/*.bin
draft: true
# prerelease: true
files: |
.pio/build/${{ matrix.environment }}/output/*.bin
.pio/build/${{ matrix.environment }}/output/*.json
# draft: true
prerelease: true
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_ACTION_TOKEN }}
- name: 📂 Sync files - FTP-Deploy-Action
uses: SamKirkland/[email protected]
env:
FTP_SERVER: ${{ secrets.FTP_SERVER }}
FTP_USERNAME: ${{ secrets.FTP_USER }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
LOCAL_DIR: .pio/build/${{ matrix.environment }}/output/
REMOTE_DIR: /public_html/wp-content/uploads/firmware/${{ github.event.repository.name }}/
METHOD: sftp
PORT: 22
ARGS: --verbose
# - name: 📂 Sync files - FTP-Deploy-Action
# uses: SamKirkland/[email protected]
# env:
# FTP_SERVER: ${{ secrets.FTP_SERVER }}
# FTP_USERNAME: ${{ secrets.FTP_USER }}
# FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
# LOCAL_DIR: .pio/build/${{ matrix.environment }}/output/
# REMOTE_DIR: /public_html/wp-content/uploads/firmware/${{ github.event.repository.name }}/
# METHOD: sftp
# PORT: 22
# ARGS: --verbose
- name: Clean WP Rocket Cache
run: curl https://emariete.com/clean_cache.php

0 comments on commit 2831e58

Please sign in to comment.