Skip to content

Commit

Permalink
chore: update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlo411 committed Jan 21, 2025
1 parent 7a7cb2b commit d61e997
Showing 1 changed file with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Build and Push Docker Image to GitHub Container Registry
name: Build Docker Image and Publish Release

on:
push:
tags:
- 'v*.*.*' # Matches tags like v0.1.0, v1.2.3, etc.
- 'v*.*.*' # Triggers on tag push (e.g., v1.0.0, v1.2.3)

jobs:
build:
build_and_release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -31,3 +31,14 @@ jobs:
run: |
docker push ghcr.io/${{ github.repository }}:${{ github.ref_name }}
- name: Create a GitHub Release
id: release
uses: softprops/action-gh-release@v1
with:
files: |
./path/to/your/output/files/*.tar.gz # You can include any other artifacts you want to attach to the release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Output Release URL
run: echo "Release URL: ${{ steps.release.outputs.html_url }}"

0 comments on commit d61e997

Please sign in to comment.