Skip to content

Commit

Permalink
feat(cicd): add create release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Dec 19, 2023
1 parent 24475b6 commit 645d3b6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/android-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ jobs:
run: |
echo "GPF_key=${{ secrets.GPF_key }}" > .env
- name: Get the tagname
id: get_tagname
run: echo TAGNAME=$(echo ${GITHUB_REF##*/}) >> $GITHUB_OUTPUT

- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -36,6 +32,12 @@ jobs:
- name: Sync
run: npx cap sync

- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 17

- name: Build Android Release APK
run: cd android && ./gradlew assembleRelease

Expand All @@ -54,7 +56,6 @@ jobs:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: fr.ign.geoportail
releaseFiles: ${{ steps.sign_apk.outputs.signedReleaseFile }}
track: qa
track: internal
status: completed
releaseName: ${{ steps.get_tagname.outputs.TAGNAME }}
inAppUpdatePriority: 5
22 changes: 22 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Create release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
4 changes: 0 additions & 4 deletions .github/workflows/ios-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ jobs:
run: |
echo "GPF_key=${{ secrets.GPF_key }}" > .env
- name: Get the tagname
id: get_tagname
run: echo TAGNAME=$(echo ${GITHUB_REF##*/}) >> $GITHUB_OUTPUT

- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 645d3b6

Please sign in to comment.