Skip to content

Commit

Permalink
fix github ref
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Nov 10, 2024
1 parent c6da98f commit 0901c63
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,19 @@ jobs:
env:
BINARY_PATH: ${{ steps.go_build.outputs.release_asset_dir }}
run: ./build/package/pre-packaging.sh
- id: new_ref
run: |
new_ref="$GITHUB_REF"
if [[ "$GITHUB_REF" == "refs/heads/main" || "$GITHUB_REF" == "refs/tags/main" ]]; then
new_ref="refs/tags/v0.0.0"
fi
echo "new_ref=$new_ref" >> "$GITHUB_ENV"
- uses: jiro4989/build-deb-action@v3
with:
package: ${{ github.event.repository.name }}
package_root: build/package/debian
maintainer: Son Roy Almerol <github@snry.me>
version: ${{ github.ref }}
version: ${{ env.new_ref }}
arch: 'amd64'
depends: 'proxmox-backup (>= 3.2), proxmox-backup-client (>= 3.2.5), rclone'
desc: 'PBS Plus is a project focused on extending Proxmox Backup Server (PBS) with advanced features to create a more competitive backup solution'
Expand Down

0 comments on commit 0901c63

Please sign in to comment.