aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-03-31 18:13:39 +0000
committersaturneric <[email protected]>2023-03-31 18:13:39 +0000
commitcf1af943216dacd6bcef437ea60cb66dfad65337 (patch)
treed3731335b1e2bd35c69671cf35d542139f160b49
parentfeat: use lfs to track locale files (diff)
downloadGpgFrontend-cf1af943216dacd6bcef437ea60cb66dfad65337.tar.gz
GpgFrontend-cf1af943216dacd6bcef437ea60cb66dfad65337.zip
fix: avoid using set-output commands in ci files
-rw-r--r--.github/workflows/codeql-analysis.yml1
-rw-r--r--.github/workflows/debug.yml9
-rw-r--r--.github/workflows/release-deb-package.yml6
-rw-r--r--.github/workflows/release.yml15
4 files changed, 18 insertions, 13 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 512470cd..8a8ea11b 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -46,6 +46,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
+ lfs: 'true'
submodules: recursive
# Initializes the CodeQL tools for scanning.
diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml
index 41a31788..3750f915 100644
--- a/.github/workflows/debug.yml
+++ b/.github/workflows/debug.yml
@@ -36,6 +36,7 @@ jobs:
- uses: actions/checkout@v3
with:
+ lfs: 'true'
submodules: recursive
- name: Install Dependence (Linux)
@@ -145,25 +146,25 @@ jobs:
- name: Get Short SHA of Commit
id: vars
- run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
+ run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Upload Artifact(Linux)
uses: actions/upload-artifact@master
with:
- name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}}
+ name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{env.sha_short}}
path: ${{github.workspace}}/build/release/*
if: matrix.os == 'ubuntu-latest'
- name: Upload Artifact(macOS)
uses: actions/upload-artifact@master
with:
- name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}}
+ name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{env.sha_short}}
path: ${{github.workspace}}/build/release/*
if: matrix.os == 'macos-11' || matrix.os == 'macos-12'
- name: Upload Artifact(Windows)
uses: actions/upload-artifact@master
with:
- name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}}
+ name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{env.sha_short}}
path: ${{github.workspace}}/build/release/*
if: matrix.os == 'windows-latest'
diff --git a/.github/workflows/release-deb-package.yml b/.github/workflows/release-deb-package.yml
index 55b8c095..446ca3b1 100644
--- a/.github/workflows/release-deb-package.yml
+++ b/.github/workflows/release-deb-package.yml
@@ -30,11 +30,13 @@ jobs:
- uses: actions/checkout@v3
with:
+ lfs: 'true'
submodules: 'recursive'
- name: Get Short SHA of Commit
id: vars
- run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
+ run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
+
- name: Install Dependence (Ubuntu 20.04)
run: |
@@ -91,5 +93,5 @@ jobs:
- name: Upload Artifact(Linux DEB)
uses: actions/upload-artifact@master
with:
- name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}}-deb-${{matrix.os}}
+ name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{env.sha_short}}-deb-${{matrix.os}}
path: ${{github.workspace}}/build-deb-${{matrix.os}}/gpgfrontend*.deb*
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b2f3bb39..b4f8f875 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -35,11 +35,12 @@ jobs:
- uses: actions/checkout@v3
with:
+ lfs: 'true'
submodules: recursive
- name: Get Short SHA of Commit
id: vars
- run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
+ run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Install Dependence (Linux)
run: |
@@ -213,15 +214,15 @@ jobs:
hdiutil convert ${{github.workspace}}/build/tmp.dmg -format UDZO -o ${{github.workspace}}/build/artifactOut/GpgFrontend.dmg
codesign -s "${{secrets.GPGFRONTEND_XOCDE_CODE_SIGN_IDENTITY}}" ${{github.workspace}}/build/artifactOut/GpgFrontend.dmg
mv ${{github.workspace}}/build/artifactOut/GpgFrontend.dmg \
- ${{github.workspace}}/build/artifactOut/GpgFrontend-${{steps.vars.outputs.sha_short}}-x86_64.dmg
+ ${{github.workspace}}/build/artifactOut/GpgFrontend-${{env.sha_short}}-x86_64.dmg
mv ${{github.workspace}}/build/GpgFrontend.app.zip \
- ${{github.workspace}}/build/GpgFrontend-${{steps.vars.outputs.sha_short}}-x86_64.zip
+ ${{github.workspace}}/build/GpgFrontend-${{env.sha_short}}-x86_64.zip
if: matrix.os == 'macos-11' || matrix.os == 'macos-12'
- name: Notarize Release Build (macOS)
run: |
xcrun altool --notarize-app \
- -f ${{github.workspace}}/build/GpgFrontend-${{steps.vars.outputs.sha_short}}-x86_64.zip \
+ -f ${{github.workspace}}/build/GpgFrontend-${{env.sha_short}}-x86_64.zip \
--primary-bundle-id ${{secrets.GPGFRONTEND_XOCDE_APPID}} \
-u ${{secrets.APPLE_DEVELOPER_ID}} \
-p ${{secrets.APPLE_DEVELOPER_ID_SECRET}}
@@ -249,20 +250,20 @@ jobs:
- name: Upload Artifact(Linux)
uses: actions/upload-artifact@master
with:
- name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}}
+ name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{env.sha_short}}
path: ${{github.workspace}}/build/artifactOut/GpgFrontend*.AppImage*
if: matrix.os == 'ubuntu-18.04'
- name: Upload Artifact(macOS)
uses: actions/upload-artifact@master
with:
- name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}}
+ name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{env.sha_short}}
path: ${{github.workspace}}/build/artifactOut/*
if: matrix.os == 'macos-11' || matrix.os == 'macos-12'
- name: Upload Artifact(Windows)
uses: actions/upload-artifact@master
with:
- name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{steps.vars.outputs.sha_short}}
+ name: gpgfrontend-${{matrix.os}}-${{env.BUILD_TYPE}}-${{env.sha_short}}
path: ${{github.workspace}}/build/release/*
if: matrix.os == 'windows-2019'