mirror of https://github.com/decompals/wibo.git
[ci] Release on any tag, and create a separate gh release for each
This commit is contained in:
parent
b84567268c
commit
5c1f8ca7c8
|
@ -28,9 +28,8 @@ jobs:
|
||||||
name: wibo
|
name: wibo
|
||||||
path: wibo
|
path: wibo
|
||||||
|
|
||||||
- name: Update release
|
- name: Publish release
|
||||||
uses: johnwbyrd/update-release@v1.0.0
|
uses: softprops/action-gh-release@v1
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
files: wibo
|
||||||
files: wibo
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ name: Create and push Docker build image
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
tags: [ 'v*.*.*' ]
|
tags: [ '*.*.*' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
public_docker_image:
|
public_docker_image:
|
||||||
|
@ -32,11 +32,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/ghcr.io/decompals/wibo:latest
|
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)
|
- name: Build and push to Github registry (versioned)
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|
Loading…
Reference in New Issue