Skip to content

Commit

Permalink
update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Sep 16, 2024
1 parent ed146d8 commit 96613b9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Build VM Disk Image

on:
push:
branches: '*'
tags: 'v*'
branches:
- '*'
tags:
- 'v*'
pull_request:
branches:
- master
Expand All @@ -25,7 +27,7 @@ jobs:

steps:
- name: Clone Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand All @@ -50,7 +52,7 @@ jobs:
- name: Extract Version
id: version
if: startsWith(github.ref, 'refs/tags/v')
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Create Release
id: create_release_try1
Expand All @@ -66,7 +68,7 @@ jobs:
- name: Create Release (retry)
id: create_release_try2
if: startsWith(github.ref, 'refs/tags/v') && steps.create_release_try1.outcome == 'failure'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: Haiku ${{ steps.version.outputs.VERSION }}
draft: true
Expand Down

0 comments on commit 96613b9

Please sign in to comment.