mirror of
https://github.com/jimeh/casecmp.git
synced 2026-02-19 10:26:40 +00:00
ci(release): really fix release job, hopefully for real this time :P
This commit is contained in:
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@@ -7,8 +7,8 @@ jobs:
|
|||||||
name: build
|
name: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.18
|
go-version: 1.18
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -22,7 +22,6 @@ jobs:
|
|||||||
http://localhost:8080/
|
http://localhost:8080/
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
@@ -31,22 +30,28 @@ jobs:
|
|||||||
id: release-please
|
id: release-please
|
||||||
with:
|
with:
|
||||||
command: manifest
|
command: manifest
|
||||||
- uses: actions/checkout@v2
|
- if: ${{ steps.release-please.outputs.release_created }}
|
||||||
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Set up QEMU
|
- if: ${{ steps.release-please.outputs.release_created }}
|
||||||
uses: docker/setup-qemu-action@v1
|
name: Set up QEMU
|
||||||
- uses: docker/setup-buildx-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Docker Login
|
- if: ${{ steps.release-please.outputs.release_created }}
|
||||||
uses: docker/login-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- if: ${{ steps.release-please.outputs.release_created }}
|
||||||
|
name: Docker Login
|
||||||
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: actions/setup-go@v2
|
- if: ${{ steps.release-please.outputs.release_created }}
|
||||||
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.18
|
go-version: 1.18
|
||||||
- name: Run GoReleaser
|
- if: ${{ steps.release-please.outputs.release_created }}
|
||||||
|
name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
|
|||||||
Reference in New Issue
Block a user