Skip to content

Commit

Permalink
Adds pre-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
hennie committed Aug 21, 2024
1 parent c2491ef commit 982ca8e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create Pre-Release

# Trigger the workflow when a tag matching '*-test' is pushed
on:
push:
tags:
- '*-test'

jobs:
release:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the code at the tagged commit
- name: Checkout code
uses: actions/checkout@v2

# Step 2: Create a pre-release on GitHub
- name: Create a pre-release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
name: "Pre-Release ${{ github.ref }}"
body: "This is a pre-release for testing purposes."
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 982ca8e

Please sign in to comment.