Compare commits
No commits in common. "1d716380dddbf81a685cc5ccd9e729a678b04178" and "ead74b7cffa8c78c84f626c2a2596ca63561185b" have entirely different histories.
1d716380dd
...
ead74b7cff
1 changed files with 0 additions and 31 deletions
31
.github/workflows/docker-publish-android.yml
vendored
31
.github/workflows/docker-publish-android.yml
vendored
|
|
@ -4,15 +4,8 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# softprops/action-gh-release a besoin de contents: write
|
|
||||||
# pour publier une release + uploader un asset.
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
apk-deploy:
|
apk-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -41,27 +34,3 @@ jobs:
|
||||||
path: ./PostIt.Android.apk
|
path: ./PostIt.Android.apk
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
publish-release:
|
|
||||||
# Uniquement déclenché par un tag v*. Le job apk-deploy tourne en
|
|
||||||
# parallèle, on partage l'artefact entre jobs.
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
needs: apk-deploy
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Récupérer l'APK depuis l'artefact
|
|
||||||
uses: actions/download-artifact@v7
|
|
||||||
with:
|
|
||||||
name: application-apk-release
|
|
||||||
path: ./
|
|
||||||
|
|
||||||
- name: Publier la release GitHub et uploader l'APK
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
# Le nom de fichier final dans la release. C'est ce qui
|
|
||||||
# apparaîtra dans l'asset et donc dans le permalink :
|
|
||||||
# https://github.com/<owner>/<repo>/releases/latest/download/PostIt.Android.apk
|
|
||||||
files: ./PostIt.Android.apk
|
|
||||||
# generate_release_notes: true -> évite d'avoir à maintenir
|
|
||||||
# le corps de release à la main. Décommente si tu veux.
|
|
||||||
# generate_release_notes: true
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue