Skip to content

Commit

Permalink
Add release workflow with pubishing instead
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios committed Jan 15, 2024
1 parent ffac98b commit b764e6f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/publish-binaries.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
name: Publish binaries to release
on:
release:
types: [published]
name: Create release and publish binaries
on:
push:
tags:
- 'v*'
jobs:
release:
create_release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
publish_binaries:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Publish Docker image
on:
release:
types: [published]
on:
push:
tags:
- 'v*'
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand All @@ -20,7 +21,6 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit b764e6f

Please sign in to comment.