Skip to content

Commit

Permalink
Merge pull request #17 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 a183a39 + 1d55a53 commit 84346c3
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 @@ -32,7 +34,7 @@ jobs:

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

Expand Down Expand Up @@ -74,12 +76,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: OpenBSD ${{ steps.version.outputs.VERSION }}
draft: true
Expand Down

0 comments on commit 84346c3

Please sign in to comment.