Skip to content

chore(main): πŸ”– release 0.2.1 (#11) #39

chore(main): πŸ”– release 0.2.1 (#11)

chore(main): πŸ”– release 0.2.1 (#11) #39

Workflow file for this run

name: release
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
name: release please
outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
#tag_name: ${{ steps.release-please.outputs[format('{0}--tag_name', steps.get-path.outputs.path)] }}
steps:
- name: Release Please
uses: googleapis/release-please-action@v4
id: release-please
with:
config-file: .release-please/release-please-config.json
manifest-file: .release-please/.release-please-manifest.json
skip-github-release: false
goreleaser:
runs-on: ubuntu-latest
name: release
needs: release-please
if: ${{ needs.release-please.outputs.releases_created == 'true' }}
steps:
- name: Checkout
run: |
git version
git clone "${{ github.event.repository.html_url }}" /home/runner/work/kook-go/kook-go
git checkout "${{ github.ref }}"
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
workdir: src/
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v5
# with:
# version: latest
# args: release --clean
# workdir: src/
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Upload assets
# uses: actions/upload-artifact@v3
# with:
# name: kook-go
# path: src/dist/kook-go_*