Skip to content

Commit

Permalink
Merge pull request #5 from scribam/github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg authored May 31, 2024
2 parents 0e5ede6 + 5d35095 commit e8099d9
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 Down Expand Up @@ -51,7 +53,7 @@ jobs:

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

Expand Down Expand Up @@ -91,12 +93,12 @@ 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
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: FreeBSD ${{ steps.version.outputs.VERSION }}
draft: true
Expand Down

0 comments on commit e8099d9

Please sign in to comment.