Merge branch 'main' into weblate-fluffychat-translations
This commit is contained in:
commit
94971c4a11
3 changed files with 26 additions and 34 deletions
15
.github/workflows/main_deploy.yaml
vendored
15
.github/workflows/main_deploy.yaml
vendored
|
|
@ -78,18 +78,3 @@ jobs:
|
||||||
bundle update fastlane
|
bundle update fastlane
|
||||||
bundle exec fastlane deploy_internal_test
|
bundle exec fastlane deploy_internal_test
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
deploy_snap:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
snap-file: ${{ steps.build-snap.outputs.snap }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: snapcore/action-build@v1
|
|
||||||
id: build-snap
|
|
||||||
- uses: snapcore/action-publish@v1
|
|
||||||
env:
|
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
|
||||||
with:
|
|
||||||
snap: ${{ steps.build-snap.outputs.snap }}
|
|
||||||
release: 'edge'
|
|
||||||
|
|
|
||||||
38
.github/workflows/release.yaml
vendored
38
.github/workflows/release.yaml
vendored
|
|
@ -143,26 +143,28 @@ jobs:
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
deploy_snap:
|
promote_snapcraft:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: false # Until snap is fixed
|
env:
|
||||||
outputs:
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||||
snap-file: ${{ steps.build-snap.outputs.snap }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Check out Git repository
|
||||||
- uses: snapcore/action-build@v1
|
uses: actions/checkout@v3
|
||||||
id: build-snap
|
- name: Install Snapcraft
|
||||||
- name: Set release type
|
uses: samuelmeuli/action-snapcraft@v2
|
||||||
id: set-release
|
- run: snapcraft
|
||||||
|
- name: Install expect
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y expect
|
||||||
|
- name: Promote Snap
|
||||||
run: |
|
run: |
|
||||||
if [[ "${GITHUB_REF_NAME}" == rc* ]]; then
|
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
||||||
echo "::set-output name=release::candidate"
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||||
|
expect -c "
|
||||||
|
spawn snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
||||||
|
expect \"Do you want to promote the current set to the 'candidate' channel? [y/N]:\"
|
||||||
|
send \"y\r\"
|
||||||
|
expect eof
|
||||||
|
"
|
||||||
else
|
else
|
||||||
echo "::set-output name=release::stable"
|
snapcraft promote fluffychat --from-channel candidate --to-channel stable --yes
|
||||||
fi
|
fi
|
||||||
- uses: snapcore/action-publish@v1
|
|
||||||
env:
|
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
|
||||||
with:
|
|
||||||
snap: ${{ steps.build-snap.outputs.snap }}
|
|
||||||
release: ${{ steps.set-release.outputs.release }}
|
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,11 @@ parts:
|
||||||
build-packages:
|
build-packages:
|
||||||
- g++
|
- g++
|
||||||
|
|
||||||
|
zenity-integration:
|
||||||
|
plugin: nil
|
||||||
|
stage-snaps:
|
||||||
|
- zenity-integration
|
||||||
|
|
||||||
fluffychat:
|
fluffychat:
|
||||||
plugin: flutter
|
plugin: flutter
|
||||||
source: .
|
source: .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue