Skip to content

Now release is created - modify existing release #58

Now release is created - modify existing release

Now release is created - modify existing release #58

Workflow file for this run

# build a new alpha release
name: develop-push
# Controls when the action will run.
on:
# Triggers the workflow on push
push:
branches: [ develop ]
workflow_dispatch:
permissions: {}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
buildAndPublishAlpha:
# The type of runner that the job will run on
runs-on: 'macos-latest'
outputs:
id: ${{ steps.changelog.outputs.id }}
timestamp: ${{ steps.changelog.outputs.timestamp }}
message: ${{ steps.changelog.outputs.message }}
env:
APP_NAME: "Monal.Alpha"
BUILD_SCHEME: "Monal Alpha"
APP_DIR: "Monal.alpha.app"
BUILD_TYPE: "Alpha"
ALPHA_UPLOAD_SECRET: ${{ secrets.ALPHA_UPLOAD_SECRET }}
EXPORT_OPTIONS_CATALYST_APP_EXPORT: "../scripts/exportOptions/Alpha_Catalyst_ExportOptions.plist"
EXPORT_OPTIONS_IOS: "../scripts/exportOptions/Alpha_iOS_ExportOptions.plist"
permissions:
actions: write # needed to upload artifacts
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
with:
clean: true
submodules: true
fetch-depth: 100
fetch-tags: true
show-progress: true
lfs: true
- name: Checkout submodules
run: git submodule update -f --init --remote
- name: Import TURN secrets
run: |
if [[ -e "/Users/ci/secrets.monal_alpha" ]]; then
echo "#import \"/Users/ci/secrets.monal_alpha\"" > Monal/Classes/secrets.h
fi
- name: Write git hash include
run: |
echo "Current commit hash: $(git show-ref --hash --abbrev refs/heads/develop)"
echo "#define ALPHA_COMMIT_HASH \"$(git show-ref --hash --abbrev refs/heads/develop)\"" > Monal/Classes/commitHash.h
- name: Make our build scripts executable
run: chmod +x ./scripts/build.sh
- name: save changelog
id: changelog
env:
ID: ${{github.event.head_commit.id}}
TIMESTAMP: ${{github.event.head_commit.timestamp}}
MESSAGE: ${{github.event.head_commit.message}}
run: |
echo "ID: $ID" > changes.txt
echo "Timestamp: $TIMESTAMP" >> changes.txt
echo "$MESSAGE" >> changes.txt
echo "id=$ID" >> "$GITHUB_OUTPUT"
echo "timestamp=$TIMESTAMP" >> "$GITHUB_OUTPUT"
echo "message<<__EOF__" >> "$GITHUB_OUTPUT"
echo "$MESSAGE" >> "$GITHUB_OUTPUT"
echo "__EOF__" >> "$GITHUB_OUTPUT"
- run: |
mkdir -p Monal/build/app Monal/build/ipa
touch Monal/build/app/Monal.alpha.tar
touch Monal/build/ipa/Monal.alpha.ipa
- uses: actions/upload-artifact@v4
with:
name: monal-catalyst
path: "Monal/build/app/Monal.alpha.tar"
if-no-files-found: error
- uses: actions/upload-artifact@v4
with:
name: monal-ios
path: "Monal/build/ipa/Monal.alpha.ipa"
if-no-files-found: error