diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89a007c..6e0ee4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file + files: wibo diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index d803b82..2b6bfc6 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -2,7 +2,7 @@ name: Create and push Docker build image on: push: branches: [ main ] - tags: [ 'v*.*.*' ] + tags: [ '*.*.*' ] jobs: public_docker_image: @@ -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/')