Просмотр исходного кода

Testing GH action to create new release (#164)

Alexander Kopachov 2 лет назад
Родитель
Сommit
6bfe6ac82c

+ 13 - 0
.github/release-body.md

@@ -0,0 +1,13 @@
+## Changes
+
+* TODO
+
+## Please support development of the project
+
+* Buy me a coffee [here](https://ko-fi.com/akopachov), [here](https://www.buymeacoffee.com/mijumoho), [here](https://donorbox.org/flipper-authenticator) or [here](https://buycoffee.to/akopachov)
+* Become a patron at [Patreon](https://patreon.com/akopachov)
+* BTC: `bc1qu9k48q93uhvr9w5cn8fzz5yxuvh4e27c6hnczq`
+* ETH: `0xa12163eD56e35d3B38F7087B573384E40b2785e1`
+* USDT: `0xa12163eD56e35d3B38F7087B573384E40b2785e1`
+* DOGE: `DAa3nu1RCWwxZdAnGVga77bgxDFP1nhahj`
+* TON: `EQCSBzoTb1B7RhXnka5RegmdjHR3gQwRVgZHNPPqzjjvlW9T`

+ 56 - 0
.github/workflows/create-new-release.yml

@@ -0,0 +1,56 @@
+name: Create new release
+
+on:
+  workflow_dispatch:
+    inputs:
+      new_version:
+        description: 'New version'
+        required: true
+        type: string
+      
+      ref:
+        description: 'Commit hash (optional)'
+        required: false
+        default: ''
+        type: string
+
+jobs:
+  test-new-version:
+    runs-on: ubuntu-latest
+    
+    steps:
+      - name: Verify new version format
+        run: |
+          if [[ "${{ inputs.new_version }}" =~ ^(\d+)\.(\d+)\.(\d+)$ ]]; 
+          then 
+            echo "New version looks okay";
+            exit 1
+          else 
+            echo "Invalid version format"; 
+          fi
+
+  build:
+    runs-on: ubuntu-latest
+    
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          ref: "${{inputs.ref}}"
+          fetch-depth: 0
+          submodules: 'recursive'
+
+      - name: Build
+        run: ./build.ps1
+        shell: pwsh
+
+      - uses: ncipollo/release-action@v1.12.0
+        with:
+          artifacts: "build/*.fap"
+          bodyFile: ".github/release-body.md"
+          artifactErrorsFailBuild: true
+          updateOnlyUnreleased: true
+          allowUpdates: true
+          removeArtifacts: true
+          draft: true
+          tag: "v${{ inputs.new_version }}"
+          commit: "${{inputs.ref}}"

+ 1 - 1
flipperzero-firmware_official_dev

@@ -1 +1 @@
-Subproject commit 8bccfd6fd8010699a80208121392cc4ccf5ad0d2
+Subproject commit 9bb04832a84901b0fcf1b0921b472825fbca6bef

+ 1 - 1
flipperzero-firmware_official_stable

@@ -1 +1 @@
-Subproject commit 3991db4b36543be69c959f443b68a92167527628
+Subproject commit c29941aefb94f9b26b73c69765c94579e4f4d204