Skip to content

Commit

Permalink
Workflow improvement and fixes (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
welpie21 authored Oct 22, 2024
1 parent ae275fd commit 5fb9173
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Draft Release

on:
workflow_dispatch:
Expand All @@ -9,14 +9,6 @@ on:
RELEASE_MESSAGE:
description: Release message
required: false
RELEASE_TYPE:
description: Release type
required: false
type: choice
default: release
options:
- draft
- release

env:
TAG_VERSION: ${{ github.event.inputs.TAG_VERSION }}
Expand All @@ -41,11 +33,6 @@ jobs:
with:
tag: ${{ env.TAG_VERSION }}
name: Release ${{ github.event.inputs.TAG_VERSION }}
draft: ${{ github.event.inputs.RELEASE_TYPE == 'draft' }}
draft: true
body: ${{ github.event.inputs.RELEASE_MESSAGE }}
generateReleaseNotes: true

- name: Update the ${{ env.TAG_VERSION }} tag
uses: actions/[email protected]
with:
source-tag: ${{ env.TAG_VERSION }}
generateReleaseNotes: true
26 changes: 26 additions & 0 deletions .github/workflows/push-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Push Release

on:
release:
types: [published]

permissions:
contents: write

jobs:

ci:
name: CI Job
uses: ./.github/workflows/ci.yml

update_tag:
name: Update Tag Job
runs-on: ubuntu-latest
needs: [ci]
permissions:
contents: write
steps:
- name: Update the ${{ github.event.release.tag_name }} tag
uses: actions/[email protected]
with:
source-tag: ${{ github.event.release.tag_name }}
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Beau's Github Action Test"
description: "Do not use in production thanks :)"
name: "SurrealDB in Github Action"
description: "Start a SurrealDB instance in Github Actions"

branding:
icon: "database"
Expand Down

0 comments on commit 5fb9173

Please sign in to comment.