mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 13:08:42 +00:00
added permission write
This commit is contained in:
parent
5209825604
commit
d55572f8bc
1 changed files with 3 additions and 11 deletions
14
.github/workflows/release_github.yml
vendored
14
.github/workflows/release_github.yml
vendored
|
|
@ -4,7 +4,7 @@ on:
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main_ignore
|
- main
|
||||||
# paths:
|
# paths:
|
||||||
# - lib/**
|
# - lib/**
|
||||||
# - pubspec.lock
|
# - pubspec.lock
|
||||||
|
|
@ -13,6 +13,8 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build_and_publish:
|
build_and_publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -46,13 +48,6 @@ jobs:
|
||||||
- name: Build Android APK
|
- name: Build Android APK
|
||||||
run: flutter build apk --release --split-per-abi
|
run: flutter build apk --release --split-per-abi
|
||||||
|
|
||||||
# - name: Create Github Release
|
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: release-apk
|
|
||||||
# path: build/app/outputs/flutter-apk/*.apk
|
|
||||||
# retention-days: 2
|
|
||||||
|
|
||||||
- name: Extract pubspec version
|
- name: Extract pubspec version
|
||||||
run: |
|
run: |
|
||||||
echo "PUBSPEC_VERSION=$(grep -oP 'version:\s*\K[^+]+(?=\+)' pubspec.yaml)" >> $GITHUB_ENV
|
echo "PUBSPEC_VERSION=$(grep -oP 'version:\s*\K[^+]+(?=\+)' pubspec.yaml)" >> $GITHUB_ENV
|
||||||
|
|
@ -62,8 +57,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag: v${{ env.PUBSPEC_VERSION }}
|
tag: v${{ env.PUBSPEC_VERSION }}
|
||||||
omitBodyDuringUpdate: true
|
|
||||||
omitNameDuringUpdate: true
|
|
||||||
omitPrereleaseDuringUpdate: true
|
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
artifacts: build/app/outputs/flutter-apk/*.apk
|
artifacts: build/app/outputs/flutter-apk/*.apk
|
||||||
Loading…
Reference in a new issue