mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-08 15:47:47 +00:00
Updated workflow
This commit is contained in:
parent
b2795d71c9
commit
42cfe4b4a6
2 changed files with 31 additions and 45 deletions
15
.github/workflows/release-beta.yaml
vendored
15
.github/workflows/release-beta.yaml
vendored
|
@ -28,17 +28,14 @@ jobs:
|
|||
with:
|
||||
file: './pubspec.yaml'
|
||||
key-path: '["version"]'
|
||||
- name: Split version string
|
||||
uses: winterjung/split@v2
|
||||
id: splitted_version
|
||||
with:
|
||||
msg: "${{ steps.read_pubspec.outputs.data }}"
|
||||
separator: "+"
|
||||
- name: Save version on env variable
|
||||
run: |
|
||||
echo "VERSION_NAME=$(echo ${{ steps.splitted_version.outputs._0 }})" >> $GITHUB_ENV
|
||||
echo "::set-output name=version_name::${{ steps.splitted_version.outputs._0 }}"
|
||||
echo "::set-output name=version_number::${{ steps.splitted_version.outputs._1 }}"
|
||||
version=${{ steps.read_pubspec.outputs.data }}
|
||||
IFS='+'
|
||||
read -r -a split <<< "$version"
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_OUTPUT
|
||||
echo "VERSION_NUMBER=$(echo ${split[1]})" >> $GITHUB_OUTPUT
|
||||
- name: Update KeyStore password in gradle properties
|
||||
run: sed -i 's/#{KEYSTORE_PASS}#/${{ secrets.KEYSTORE_PASS }}/g' android/key.properties
|
||||
- name: Update KeyStore key password in gradle properties
|
||||
|
|
61
.github/workflows/release-stable.yaml
vendored
61
.github/workflows/release-stable.yaml
vendored
|
@ -25,17 +25,14 @@ jobs:
|
|||
with:
|
||||
file: './pubspec.yaml'
|
||||
key-path: '["version"]'
|
||||
- name: Split version string
|
||||
uses: winterjung/split@v2
|
||||
id: splitted_version
|
||||
with:
|
||||
msg: "${{ steps.read_pubspec.outputs.data }}"
|
||||
separator: "+"
|
||||
- name: Save version on env variable
|
||||
run: |
|
||||
echo "VERSION_NAME=$(echo ${{ steps.splitted_version.outputs._0 }})" >> $GITHUB_ENV
|
||||
echo "::set-output name=version_name::${{ steps.splitted_version.outputs._0 }}"
|
||||
echo "::set-output name=version_number::${{ steps.splitted_version.outputs._1 }}"
|
||||
version=${{ steps.read_pubspec.outputs.data }}
|
||||
IFS='+'
|
||||
read -r -a split <<< "$version"
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_OUTPUT
|
||||
echo "VERSION_NUMBER=$(echo ${split[1]})" >> $GITHUB_OUTPUT
|
||||
- name: Update KeyStore password in gradle properties
|
||||
run: sed -i 's/#{KEYSTORE_PASS}#/${{ secrets.KEYSTORE_PASS }}/g' android/key.properties
|
||||
- name: Update KeyStore key password in gradle properties
|
||||
|
@ -81,17 +78,14 @@ jobs:
|
|||
with:
|
||||
file: './pubspec.yaml'
|
||||
key-path: '["version"]'
|
||||
- name: Split version string
|
||||
uses: winterjung/split@v2
|
||||
id: splitted_version
|
||||
with:
|
||||
msg: "${{ steps.read_pubspec.outputs.data }}"
|
||||
separator: "+"
|
||||
- name: Save version on env variable
|
||||
run: |
|
||||
echo "VERSION_NAME=$(echo ${{ steps.splitted_version.outputs._0 }})" >> $GITHUB_ENV
|
||||
echo "::set-output name=version_name::${{ steps.splitted_version.outputs._0 }}"
|
||||
echo "::set-output name=version_number::${{ steps.splitted_version.outputs._1 }}"
|
||||
version=${{ steps.read_pubspec.outputs.data }}
|
||||
IFS='+'
|
||||
read -r -a split <<< "$version"
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_OUTPUT
|
||||
echo "VERSION_NUMBER=$(echo ${split[1]})" >> $GITHUB_OUTPUT
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
|
@ -140,17 +134,14 @@ jobs:
|
|||
with:
|
||||
file: './pubspec.yaml'
|
||||
key-path: '["version"]'
|
||||
- name: Split version string
|
||||
uses: winterjung/split@v2
|
||||
id: splitted_version
|
||||
with:
|
||||
msg: "${{ steps.read_pubspec.outputs.data }}"
|
||||
separator: "+"
|
||||
- name: Save version on env variable
|
||||
run: |
|
||||
echo "VERSION_NAME=$(echo ${{ steps.splitted_version.outputs._0 }})" >> $GITHUB_ENV
|
||||
echo "::set-output name=version_name::${{ steps.splitted_version.outputs._0 }}"
|
||||
echo "::set-output name=version_number::${{ steps.splitted_version.outputs._1 }}"
|
||||
version=${{ steps.read_pubspec.outputs.data }}
|
||||
IFS='+'
|
||||
read -r -a split <<< "$version"
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_OUTPUT
|
||||
echo "VERSION_NUMBER=$(echo ${split[1]})" >> $GITHUB_OUTPUT
|
||||
- name: Update version in debian.yaml
|
||||
run: sed -i 's/<REPLACE_VERSION_NUMBER_ACTIONS>/${{ env.VERSION_NAME }}/g' debian/debian.yaml
|
||||
- name: Update dependencies list
|
||||
|
@ -202,17 +193,15 @@ jobs:
|
|||
with:
|
||||
file: './pubspec.yaml'
|
||||
key-path: '["version"]'
|
||||
- name: Split version string
|
||||
uses: winterjung/split@v2
|
||||
id: splitted_version
|
||||
with:
|
||||
msg: "${{ steps.read_pubspec.outputs.data }}"
|
||||
separator: "+"
|
||||
- name: Save version on env variable
|
||||
shell: bash
|
||||
run: |
|
||||
echo "VERSION_NAME=$(echo ${{ steps.splitted_version.outputs._0 }})" >> $GITHUB_ENV
|
||||
echo "::set-output name=version_name::${{ steps.splitted_version.outputs._0 }}"
|
||||
echo "::set-output name=version_number::${{ steps.splitted_version.outputs._1 }}"
|
||||
version=${{ steps.read_pubspec.outputs.data }}
|
||||
IFS='+'
|
||||
read -r -a split <<< "$version"
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_OUTPUT
|
||||
echo "VERSION_NUMBER=$(echo ${split[1]})" >> $GITHUB_OUTPUT
|
||||
- name: Update version in innosetup config file
|
||||
shell: pwsh
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue