Skip to content

Commit

Permalink
[ci] Release on any tag, and create a separate gh release for each
Browse files Browse the repository at this point in the history
  • Loading branch information
ethteck committed Jul 3, 2022
1 parent b845672 commit 5c1f8ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ jobs:
name: wibo
path: wibo

- name: Update release
uses: johnwbyrd/update-release@v1.0.0
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
- name: Publish release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: wibo
files: wibo
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Create and push Docker build image
on:
push:
branches: [ main ]
tags: [ 'v*.*.*' ]
tags: [ '*.*.*' ]

jobs:
public_docker_image:
Expand Down Expand Up @@ -32,11 +32,11 @@ jobs:
with:
push: true
tags: ghcr.io/ghcr.io/decompals/wibo:latest
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}

- name: Build and push to Github registry (versioned)
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: startsWith(github.ref, 'refs/tags/')

0 comments on commit 5c1f8ca

Please sign in to comment.