Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ jobs:
run: |
VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1)
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- uses: actions/setup-node@v3
echo "VERSION=$VERSION" >> ${GITHUB_ENV}
- uses: actions/setup-node@v4
with:
node-version: "22"
- uses: pnpm/action-setup@v4
Expand All @@ -89,7 +89,7 @@ jobs:
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV}
- uses: actions/cache@v4
name: Setup pnpm cache
with:
Expand All @@ -108,16 +108,15 @@ jobs:
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create RPM
run: |
rpmbuild --build-in-place --define "_topdir $(pwd)" --define "version ${{ env.VERSION }}" -bb resources-linux/defguard-client.spec
with:
args: "--bundles deb,rpm"
- name: Upload RPM
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: RPMS/${{ matrix.binary_arch }}/defguard-client-${{ env.VERSION }}-1.${{ matrix.binary_arch }}.rpm
asset_path: src-tauri/target/release/bundle/rpm/defguard-client-${{ env.VERSION }}-1.${{ matrix.binary_arch }}.rpm
asset_name: defguard-client-${{ env.VERSION }}-1.${{ matrix.binary_arch }}.rpm
asset_content_type: application/octet-stream
- name: Upload DEB
Expand Down Expand Up @@ -237,8 +236,8 @@ jobs:
run: |
VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1)
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- uses: actions/setup-node@v3
echo "VERSION=$VERSION" >> ${GITHUB_ENV}
- uses: actions/setup-node@v4
with:
node-version: "22"
- uses: pnpm/action-setup@v4
Expand All @@ -247,7 +246,7 @@ jobs:
run_install: false
- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
run: echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV}
- uses: actions/cache@v4
name: Setup pnpm cache
with:
Expand Down Expand Up @@ -320,7 +319,7 @@ jobs:
$env:VERSION=echo ($env:GITHUB_REF_NAME.Substring(1) -Split "-")[0]
echo Version: $env:VERSION
echo "VERSION=$env:VERSION" >> $env:GITHUB_ENV
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "22"
- uses: pnpm/action-setup@v4
Expand All @@ -329,7 +328,7 @@ jobs:
run_install: false
- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $env:GITHUB_ENV
run: echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV}
- uses: actions/cache@v4
name: Setup pnpm cache
with:
Expand Down Expand Up @@ -376,7 +375,7 @@ jobs:
run: |
VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1)
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> ${GITHUB_ENV}
- name: Download unsigned bundle & burn-engine
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -422,7 +421,7 @@ jobs:
run: |
VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1)
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> ${GITHUB_ENV}
- name: Download unsigned bundle & signed burn-engine
uses: actions/download-artifact@v4
with:
Expand Down
Empty file.
Loading
Loading