From ce91e84049086228556ec1d3d69bbfa6412dfc3d Mon Sep 17 00:00:00 2001 From: Petr Gadorek Date: Tue, 17 Dec 2024 12:59:08 +0100 Subject: [PATCH] improved release pipeline --- .github/workflows/build_tauri.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_tauri.yaml b/.github/workflows/build_tauri.yaml index 9551cf9..1720425 100644 --- a/.github/workflows/build_tauri.yaml +++ b/.github/workflows/build_tauri.yaml @@ -280,7 +280,7 @@ jobs: if-no-files-found: error - name: Upload Release Asset - if: github.event_name == 'release' && github.event.action == 'created' && matrix.platform == 'macos-12' + if: github.event_name == 'release' && github.event.action == 'created' && matrix.platform == 'macos-13' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -348,3 +348,20 @@ jobs: path: | src-tauri/target/release/bundle/msi/*.msi if-no-files-found: error + + fetch-latest-release: + name: Fetch Latest Release Info + runs-on: ubuntu-latest + # This ensures the job runs after a release is created or when manually triggered + if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' + + steps: + - name: Fetch latest release + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_DEFAULT_REGION: ap-east-1 + run: | + curl -s https://api.github.com/repos/espressif/idf-im-ui/releases/latest > eim_gui_release.json + echo "Latest release tag: $(jq -r .tag_name eim_gui_release.json)" + aws s3 cp --acl=public-read "/Users/petrgadorek/work/idf-im/eim_gui_release.json" s3://espdldata/dl/eim/eim_gui_release.json