Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Jan 12, 2025
1 parent 1f775fc commit 6db4847
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Test 🧪

on:
push:
Expand All @@ -9,7 +9,7 @@ on:

jobs:
test:
name: Run tests and checks ️⚖️
name: Test and check ️✅
runs-on: ubuntu-22.04
strategy:
matrix:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release 🏷️

on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:
inputs:
tag:
description: "The existing tag to publish"
type: "string"
required: true

jobs:
publish-release:
name: "Publish Release 📤️"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Publish release ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref }}" --draft --generate-notes
if [ "$(gh release view "${{ github.ref }}" --json assets --template '{{len .assets}}')" -eq 0 ]; then
exit 1
fi
gh release edit "${{ github.ref }}" --draft=false

0 comments on commit 6db4847

Please # to comment.