Skip to content

Commit

Permalink
improved release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Gadorek committed Dec 17, 2024
1 parent f9dc22d commit ce91e84
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build_tauri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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

0 comments on commit ce91e84

Please sign in to comment.