fix: add snippet for old android (with no lets encrypt certificate) #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snap build | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
snap: | |
name: Build and create snap | |
runs-on: ubuntu-latest | |
outputs: | |
output1: ${{ steps.version.outputs.version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create version | |
id: version | |
run: echo "version=$(grep ^version pubspec.yaml |cut -f 2 -d ' '|cut -f 1 -d '+')" >> $GITHUB_OUTPUT | |
- name: Get HEAD short sha | |
id: short_sha | |
run: echo "short_sha=$(echo ${{ github.sha }}|head -c 7)" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: set HEAD git short sha in config.dart | |
run: sed -i "/commit/s/HEAD/${{ steps.short_sha.outputs.short_sha }}/" lib/config.dart | |
shell: bash | |
- uses: snapcore/action-build@v1 | |
id: snapcraft | |
- name: Create a release in GitHub | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: ${{ steps.snapcraft.outputs.snap }} | |
token: "${{ secrets.GH_TOKEN }}" | |
tag: "v${{ steps.version.outputs.version }}" | |
commit: "${{ github.sha }}" |