Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand authored Jul 30, 2024
1 parent 74e80bf commit 752dd19
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release
on:
release:
types: [published]
jobs:
publish:
name: Publish
runs-on: macos-latest
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
permissions:
contents: write # for asset upload
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
- name: download sdks & generator
run: |
curl -sL https://github.com/4d/ios-sdk/releases/latest/download/ios.zip -o Resources/sdk/ios.zip
curl -sL https://github.com/4d/android-sdk/releases/latest/download/android.zip -o Resources/sdk/android.zip
curl -sL https://github.com/4d/android-ProjectGenerator/releases/latest/download/androidprojectgenerator.jar -o Resources/scripts/androidprojectgenerator.jar
- name: Check out 4D-Progress
uses: actions/checkout@v4
with:
repository: 4d/4D-Progress
path: Components/4D-Progress.4dbase
- name: BuildAndPackage
uses: 4d/build4d-action@main
with:
actions: "build,pack,archive"
- name: Upload
run: |
gh release upload ${{github.event.release.tag_name}} "build/4D-Mobile-App.zip"

0 comments on commit 752dd19

Please sign in to comment.